From 8c03002fcc765e3d0e219b51492e1fd3bf16fea6 Mon Sep 17 00:00:00 2001 From: zhongcong Date: Wed, 29 May 2013 20:18:05 +0800 Subject: [PATCH 1/2] h264: fix exec reference picture marking error add new --- gst-libs/gst/vaapi/gstvaapidecoder_h264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index b1999fa..d7f3cef 100755 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -3052,7 +3052,8 @@ exec_ref_pic_marking_adaptive_mmco_6( dpb_layer->long_ref[dpb_layer->long_ref_count++] = picture; picture->long_term_frame_idx = ref_pic_marking->long_term_frame_idx; gst_vaapi_picture_h264_set_reference(picture, - GST_VAAPI_PICTURE_FLAG_LONG_TERM_REFERENCE, TRUE); + GST_VAAPI_PICTURE_FLAG_LONG_TERM_REFERENCE, + GST_VAAPI_PICTURE_IS_FRAME(picture) || !GST_VAAPI_PICTURE_IS_FIRST_FIELD(picture)); } /* 8.2.5.4. Adaptive memory control decoded reference picture marking process */ -- 1.7.9.5