codecs: h264dec: Output the picture directly if already a frame.
authorHe Junyan <junyan.he@intel.com>
Thu, 29 Jul 2021 13:30:32 +0000 (21:30 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 12 Aug 2021 07:41:28 +0000 (07:41 +0000)
commit70ce2327d0dc10941eafe01a39cb3dc6d776a800
treef5376977aee20cc35e3fb211cf247c53e38a7313
parent2505ab17e98eb6343ceae0e6fb7e130a90ec34f0
codecs: h264dec: Output the picture directly if already a frame.

We forget one case that is the frame and field pictures may be mixed
together. For this case, the dpb is interlaced while the last picture
may be a complete frame. We do not need to cache that complete picture
and should output it directly.

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