]> git.sesse.net Git - ffmpeg/commit
h264_redundant_pps: Make it reference-compatible
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 27 Jul 2020 16:32:23 +0000 (17:32 +0100)
committerMark Thompson <sw@jkqxz.net>
Tue, 1 Sep 2020 23:00:57 +0000 (00:00 +0100)
commitd1c6e09d09f530a1f103a5dbdf06f69f42611974
treefcbac1190cdfe6b961f1766dfeb8f719a765bed5
parent0720e15c0330f0f101c02d5c2c6548e964079f6d
h264_redundant_pps: Make it reference-compatible

Since c6a63e11092c975b89d824f08682fe31948d3686, the parameter sets
modified as content of PPS units were references shared with the
CodedBitstreamH264Context, so modifying them alters the parsing process
of future access units which meant that frames often got discarded
because invalid values were parsed. This patch makes h264_redundant_pps
compatible with the reality of reference-counted parameter sets.

Fixes #7807.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavcodec/h264_redundant_pps_bsf.c