From: Michael Niedermayer Date: Sun, 30 Nov 2008 23:51:02 +0000 (+0000) Subject: Fix segfault due to deallocated entries in delayed_pic after size change. X-Git-Tag: v0.5~1830 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ff7f75e18574ba0ac3e841a1ff3a962e41552df2;p=coroid%2Flibav_saccubus.git Fix segfault due to deallocated entries in delayed_pic after size change. Fixes issue714. Originally committed as revision 15965 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/h264.c b/libavcodec/h264.c index e31500f15..84875962a 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) {