diff options
author | He Junyan <junyan.he@intel.com> | 2021-07-26 01:16:34 +0800 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-28 10:54:21 +0000 |
commit | 04974015ec158985ca75298d8e1a78e5025a573c (patch) | |
tree | e4520f32f7b3ab5fb593d0f5b82e88f9e0acf567 /gst-libs | |
parent | e8882c3a1d63c498c891f33101974fb4627c15dc (diff) | |
download | gstreamer-plugins-bad-04974015ec158985ca75298d8e1a78e5025a573c.tar.gz |
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>
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/codecs/gsth264picture.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |