mpeg2enc: f_code[s][t] takes the value 15 for I frame
authorXiang, Haihao <haihao.xiang@intel.com>
Mon, 26 Nov 2012 03:05:57 +0000 (11:05 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 7 Dec 2012 08:05:34 +0000 (16:05 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
test/encode/mpeg2enc.c

index 7db2887..039fe33 100644 (file)
@@ -657,10 +657,10 @@ mpeg2enc_init_picture_parameter(struct mpeg2enc_context *ctx,
     pic_param->picture_type = VAEncPictureTypeIntra;
 
     pic_param->temporal_reference = 0;
-    pic_param->f_code[0][0] = 1;
-    pic_param->f_code[0][1] = 1;
-    pic_param->f_code[1][0] = 1;
-    pic_param->f_code[1][1] = 1;
+    pic_param->f_code[0][0] = 0xf;
+    pic_param->f_code[0][1] = 0xf;
+    pic_param->f_code[1][0] = 0xf;
+    pic_param->f_code[1][1] = 0xf;
 
     pic_param->picture_coding_extension.bits.intra_dc_precision = 0; /* 8bits */
     pic_param->picture_coding_extension.bits.picture_structure = 3; /* frame picture */