h264: discard slices of redundant pictures right after parsing the slice header
authorAnton Khirnov <anton@khirnov.net>
Fri, 20 May 2016 10:30:42 +0000 (12:30 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 21 Jun 2016 09:20:26 +0000 (11:20 +0200)
commite26c64148be8a20ace7512d96503172fb5e9753b
tree57cfa88685fd2b448e462ba42ee515810e9c0f8e
parent6efc4638584e1e14d1a6152186ba28f5d48a80c0
h264: discard slices of redundant pictures right after parsing the slice header

Going through the whole decoder initialization process for a slice we
are not going to decode is unnecessary and potentially dangerous.
libavcodec/h264_slice.c
libavcodec/h264dec.c