mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
codecs: h264dec: Fix a error print of dpb_add.
When the dpb is interlaced, the max size should be 2*dpb->max_num_frames, correcting the error print info for that. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2430>
This commit is contained in:
parent
e8882c3a1d
commit
04974015ec
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ gst_h264_dpb_add (GstH264Dpb * dpb, GstH264Picture * picture)
|
||||||
|
|
||||||
if (dpb->pic_list->len > dpb->max_num_frames * (dpb->interlaced + 1))
|
if (dpb->pic_list->len > dpb->max_num_frames * (dpb->interlaced + 1))
|
||||||
GST_ERROR ("DPB size is %d, exceed the max size %d",
|
GST_ERROR ("DPB size is %d, exceed the max size %d",
|
||||||
dpb->pic_list->len, dpb->max_num_frames);
|
dpb->pic_list->len, dpb->max_num_frames * (dpb->interlaced + 1));
|
||||||
|
|
||||||
/* The IDR frame or mem_mgmt_5 */
|
/* The IDR frame or mem_mgmt_5 */
|
||||||
if (picture->pic_order_cnt == 0) {
|
if (picture->pic_order_cnt == 0) {
|
||||||
|
|
Loading…
Reference in a new issue