summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-10-12 21:32:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-10-12 21:32:58 +0000
commit431f2172cd3b0e7f0d84094769d954eef18bf154 (patch)
treed8b3644e037b868784931d3b6aafad4e43dc46cc
parented7debda140ca5d1d8a7203abf92acb9f8eb112c (diff)
fix decoding if the aspect ratio changes
Originally committed as revision 2367 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 3 insertions, 0 deletions
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