diff h264.c @ 8231:0df3402e6b41 libavcodec

Fix segfault due to deallocated entries in delayed_pic after size change. Fixes issue714.
author michael
date Sun, 30 Nov 2008 23:51:02 +0000
parents 018299720403
children 4a8f9bbc5e81
line wrap: on
line diff
--- a/h264.c	Sun Nov 30 17:18:17 2008 +0000
+++ b/h264.c	Sun Nov 30 23:51:02 2008 +0000
@@ -3639,6 +3639,7 @@
         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) {