From 04974015ec158985ca75298d8e1a78e5025a573c Mon Sep 17 00:00:00 2001 From: He Junyan Date: Mon, 26 Jul 2021 01:16:34 +0800 Subject: 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: --- gst-libs/gst/codecs/gsth264picture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst-libs/gst') diff --git a/gst-libs/gst/codecs/gsth264picture.c b/gst-libs/gst/codecs/gsth264picture.c index 14e7bfd84..544e1d219 100644 --- a/gst-libs/gst/codecs/gsth264picture.c +++ b/gst-libs/gst/codecs/gsth264picture.c @@ -301,7 +301,7 @@ gst_h264_dpb_add (GstH264Dpb * dpb, GstH264Picture * picture) if (dpb->pic_list->len > dpb->max_num_frames * (dpb->interlaced + 1)) 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 */ if (picture->pic_order_cnt == 0) { -- cgit v1.2.1