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
This commit is contained in:
Michael Niedermayer 2008-11-30 23:51:02 +00:00
parent 4f60285658
commit ff7f75e185
1 changed files with 1 additions and 0 deletions

View File

@ -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) {