changeset 1523:925bcd748f4b libavcodec

fix decoding if the aspect ratio changes
author michael
date Sun, 12 Oct 2003 21:32:58 +0000
parents 79dddc5cd990
children 7f9f0bedc2e1
files mpegvideo.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sun Oct 12 21:25:00 2003 +0000
+++ b/mpegvideo.c	Sun Oct 12 21:32:58 2003 +0000
@@ -555,6 +555,9 @@
     }
     avcodec_default_free_buffers(s->avctx);
     s->context_initialized = 0;
+    s->last_picture_ptr=
+    s->next_picture_ptr=
+    s->current_picture_ptr= NULL;
 }
 
 #ifdef CONFIG_ENCODERS