v4l2codecs: h264: Fix split field handling
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 19 Aug 2021 20:45:18 +0000 (16:45 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 20 Aug 2021 19:29:53 +0000 (19:29 +0000)
commit4eb22b769559ef2696a78a03b30de215bd677d47
treeb79c248181d586fa20622999ff2cef8d465f044b
parentad5dcfb0912a17d4f8a77c59750bcdfee399b175
v4l2codecs: h264: Fix split field handling

Split fields ends up on multiple picture and requires accessing the
other_field to complete the information (POC).

This also cleanup the DPB from non-reference (was not useful) and skips
properly merge field instead of keeping them duplicated. This fixes most
of interlace decoding seen in fluster.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2474>
sys/v4l2codecs/gstv4l2codech264dec.c