From 431f2172cd3b0e7f0d84094769d954eef18bf154 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Oct 2003 21:32:58 +0000 Subject: [PATCH] fix decoding if the aspect ratio changes Originally committed as revision 2367 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegvideo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index b22d289da9..d56cde0ad9 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -555,6 +555,9 @@ void MPV_common_end(MpegEncContext *s) } 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