changeset 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 72949bacc1b9
children 520a6e56b8c0
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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) {