From 0ad9ee1273e6392cdffc1ae7ec26240b7878bf9c Mon Sep 17 00:00:00 2001 From: Zhong Cong Date: Thu, 27 Jun 2013 19:50:48 +0800 Subject: [PATCH] h264: fix reflist error --- gst-libs/gst/vaapi/gstvaapidecoder_h264.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index d7f3cef..2ed26e6 100755 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -2507,6 +2507,9 @@ exec_picture_refs_modification_1( for(i = num_refs; i > 0 && !ref_list[i - 1]; i--); *ref_list_count_ptr = i ; + for(j = i; j < 32 ; j++){ + ref_list[j] = NULL; + } } /* 8.2.4.3 - Modification process for reference picture lists */ -- 1.7.9.5