Commit ff7f75e1 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 4f602856
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment