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:22:12 +0000 (15:22 -0300)
commitbf87bdd3f65569e562341843965f0e810f7a2d1f
treeeb9656fadba07610abe4b49d11d152d0021851a9
parentde1132a89113b131831d8edde75214372c983f32
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