mpeg2enc: Silence compiler warning
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 6 Dec 2012 07:19:02 +0000 (15:19 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 7 Dec 2012 08:05:35 +0000 (16:05 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
test/encode/mpeg2enc.c

index 4c1b824..091732e 100644 (file)
@@ -526,7 +526,7 @@ usage(char *program)
 static void 
 parse_args(struct mpeg2enc_context *ctx, int argc, char **argv)
 {
-    int c, tmp, i = 0;
+    int c, tmp;
     int option_index = 0;
     long file_size;
     static struct option long_options[] = {
@@ -920,7 +920,7 @@ mpeg2enc_time_code(VAEncSequenceParameterBufferMPEG2 *seq_param,
     time_code_pictures = num_frames % fps;
     time_code |= time_code_pictures;
 
-    time_code_minutes = time_code_minutes / 60;
+    time_code_minutes = time_code_seconds / 60;
     time_code_seconds = time_code_minutes % 60;
     time_code |= (time_code_seconds << 6);