FileOutputStream fos = null;
try {
fos = new FileOutputStream(new File(cmd.getArg(1)));
sink = fos.getChannel();
H264Encoder encoder = H264Encoder.createH264Encoder();
<BUG>RgbToYuv420p transform = new RgbToYuv420p(0, 0);
</BUG>
int i;
for (i = 0; i < cmd.getIntegerFlagD("maxFrames", Integer.MAX_VALUE); i++) {
File nextImg = new File(String.format(cmd.getArg(0), i));

FileOutputStream fos = null;
try {
fos = new FileOutputStream(new File(cmd.getArg(1)));
sink = fos.getChannel();
H264Encoder encoder = H264Encoder.createH264Encoder();
RgbToYuv420p8Bit transform = new RgbToYuv420p8Bit();
int i;
for (i = 0; i < cmd.getIntegerFlagD("maxFrames", Integer.MAX_VALUE); i++) {
File nextImg = new File(String.format(cmd.getArg(0), i));
