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>
Tue, 10 Aug 2021 18:21:16 +0000 (15:21 -0300)
commit3aba8b176f5dc96b9b91d94ce54c41e1ec34bc9c
treeac7154d2052362b853631001e61f63aab42ce2d0
parent85713d85a70a534e8906a574c68af37a1f7053d9
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>
libavcodec/h264_slice.c