cbs_h264: Fix handling of auxiliary pictures
authorAndreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Wed, 7 Nov 2018 03:47:51 +0000 (04:47 +0100)
committerJames Almer <jamrial@gmail.com>
Sun, 21 Jul 2019 04:04:04 +0000 (01:04 -0300)
commit2ac6315c7c3a0049b02d1d79f7944507fdc4c456
tree7115348102bc7d936f7c23885421d4aca8d36dad
parent9d06c1f95ebe4f9c2cc05d041dbfd3de52d2518a
cbs_h264: Fix handling of auxiliary pictures

The earlier code used the most recent non-auxiliary slice to determine
whether an auxiliary slice has the syntax of an IDR slice, even when
the most recent slice was from a slice of a redundant frame. Now only
slices of the primary coded picture are used, as the specifications
mandate.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
(cherry picked from commit 8d1cf2d89481ca986af893425188d065c0f8f857)
libavcodec/cbs_h264_syntax_template.c