support picture order count type 2 for H.264 encoding
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 2 Nov 2011 01:57:54 +0000 (09:57 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 2 Nov 2011 01:57:54 +0000 (09:57 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_encoder_utils.c

index 3a93d8d..b6076f5 100644 (file)
@@ -215,8 +215,10 @@ slice_header(avc_bitstream *bs,
     if (sps_param->pic_order_cnt_type == 0) {
         avc_bitstream_put_ui(bs, pic_param->CurrPic.TopFieldOrderCnt, sps_param->log2_max_pic_order_cnt_lsb_minus4 + 4);
         /* pic_order_present_flag == 0 */
-    } else {
-        /* FIXME: */
+    }
+
+    if (sps_param->pic_order_cnt_type == 1 && !sps_param->seq_fields.bits.delta_pic_order_always_zero_flag) {
+        /* FIXME: pack delta pic information */
         assert(0);
     }