codecs: h264dec: Disable the POC order warning for negative POC.
authorHe Junyan <junyan.he@intel.com>
Tue, 6 Jul 2021 05:38:16 +0000 (13:38 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 6 Jul 2021 14:33:21 +0000 (14:33 +0000)
commit1fa9f26a5318be10b764759afc78b34766904302
tree37d1605673f30b988195b17aac7cb03857453b2f
parentf50089ec63a86b65ea88a06a718555b77d12c8fa
codecs: h264dec: Disable the POC order warning for negative POC.

There may be leading frames after the IDR frame, which has negative
POC. This kind of frames are allowed and they will be displayed before
the IDR frame. So the warning should not be triggered for them. Init
the last_output_poc to G_MININT32 can avoid this.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2380>
gst-libs/gst/codecs/gsth264decoder.c