mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
codecs: h264decoder: Fix missing drain handling in bumping
Should've included in the commit 5527cc4a2e
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1783>
This commit is contained in:
parent
64c1218948
commit
5342b05390
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ gst_h264_dpb_bump (GstH264Dpb * dpb, gboolean drain)
|
||||||
|
|
||||||
/* NOTE: don't use g_array_remove_index_fast here since the last picture
|
/* NOTE: don't use g_array_remove_index_fast here since the last picture
|
||||||
* need to be referenced for bumping decision */
|
* need to be referenced for bumping decision */
|
||||||
if (!picture->ref)
|
if (!picture->ref || drain)
|
||||||
g_array_remove_index (dpb->pic_list, index);
|
g_array_remove_index (dpb->pic_list, index);
|
||||||
|
|
||||||
dpb->last_output_poc = picture->pic_order_cnt;
|
dpb->last_output_poc = picture->pic_order_cnt;
|
||||||
|
|
Loading…
Reference in a new issue