avcodec/h264_slice: clear old slice POC values on parsing failure
authorJames Almer <jamrial@gmail.com>
Sun, 8 Aug 2021 18:30:26 +0000 (15:30 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 11 Aug 2021 15:01:14 +0000 (12:01 -0300)
commit347bcf6054890f19dd67f53b33489bc5c3c40471
tree6181765112fb61d48664a79ae1c7412b3a6d0c24
parentd44da66fac3127b655b316711b8f1e57b7ed1acf
avcodec/h264_slice: clear old slice POC values on parsing failure

If a slice header fails to parse, and the next one uses different Sequence and
Picture parameter sets, certain values may not be read if they are not coded,
resulting in the previous slice values being used.

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit ce4a31cd1ff0348d279af74d49556d0315171e94)
libavcodec/h264_slice.c