diff --git a/libavcodec/h264.c b/libavcodec/h264.c index e31500f15fbabce78cb17909dd50c42f25a76c4d..84875962a49f0599bcf15b37aed4d37b740208b9 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3639,6 +3639,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ if(h != h0) return -1; // width / height changed during parallelized decoding free_tables(h); + flush_dpb(s->avctx); MPV_common_end(s); } if (!s->context_initialized) {