avdec_h265: Fix endless renegoation with alternate interlacing
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 26 Oct 2022 20:30:31 +0000 (16:30 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 27 Oct 2022 13:34:48 +0000 (13:34 +0000)
commit5c2eba666ba0e14142d2584bc7716cd5688dc4e4
treef4dfe2a13e13c4f5869d42a1ba87eadb5f6ecfdf
parent2408ca2f184c6ecffb4f5ee985cade1fafba0421
avdec_h265: Fix endless renegoation with alternate interlacing

The picture parameter picture->top_field_first is reused in this mode
to signal the TOP fields. As a side effect, it will change every frame
and current code assumed that if this changes then a renegotiation is
needed. Fixed this by ignoring that change whenever we are decoding one field
only.

Fixes #1523

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3276>
subprojects/gst-libav/ext/libav/gstavviddec.c