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:
He Junyan 2021-07-26 01:16:34 +08:00 committed by GStreamer Marge Bot
parent e8882c3a1d
commit 04974015ec

View file

@ -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) {