mpeg2enc: Fix time_code_seconds in time_code
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 6 Dec 2012 08:12:45 +0000 (16:12 +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 aba7317..d1371f8 100644 (file)
@@ -932,7 +932,7 @@ mpeg2enc_time_code(VAEncSequenceParameterBufferMPEG2 *seq_param,
     time_code |= time_code_pictures;
 
     time_code_minutes = time_code_seconds / 60;
-    time_code_seconds = time_code_minutes % 60;
+    time_code_seconds = time_code_seconds % 60;
     time_code |= (time_code_seconds << 6);
 
     time_code_hours = time_code_minutes / 60;