From: Seungha Yang Date: Fri, 13 Nov 2020 18:16:07 +0000 (+0900) Subject: codecs: h264decoder: Don't give up to decode due to missing reference picture X-Git-Tag: 1.19.3~507^2~1075 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9af93d841546ca7898350ae14ed57448b24a644;p=platform%2Fupstream%2Fgstreamer.git codecs: h264decoder: Don't give up to decode due to missing reference picture Missing reference picture is very common thing for broken/malformed stream. Decoder should be able to keep decoding if it's not a very critical error. Part-of: --- diff --git a/gst-libs/gst/codecs/gsth264decoder.c b/gst-libs/gst/codecs/gsth264decoder.c index e6d20af..40446d9 100644 --- a/gst-libs/gst/codecs/gsth264decoder.c +++ b/gst-libs/gst/codecs/gsth264decoder.c @@ -2354,7 +2354,7 @@ modify_ref_pic_list (GstH264Decoder * self, int list) if (!pic) { GST_WARNING_OBJECT (self, "Malformed stream, no pic num %d", pic_num_lx); - return FALSE; + break; } shift_right_and_insert (ref_pic_listx, ref_idx_lx, num_ref_idx_lX_active_minus1, pic); @@ -2380,7 +2380,7 @@ modify_ref_pic_list (GstH264Decoder * self, int list) if (!pic) { GST_WARNING_OBJECT (self, "Malformed stream, no pic num %d", list_mod->value.long_term_pic_num); - return FALSE; + break; } shift_right_and_insert (ref_pic_listx, ref_idx_lx, num_ref_idx_lX_active_minus1, pic);