diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-10-12 21:32:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-12 21:32:58 +0000 |
commit | 431f2172cd3b0e7f0d84094769d954eef18bf154 (patch) | |
tree | d8b3644e037b868784931d3b6aafad4e43dc46cc /libavcodec | |
parent | ed7debda140ca5d1d8a7203abf92acb9f8eb112c (diff) | |
download | ffmpeg-431f2172cd3b0e7f0d84094769d954eef18bf154.tar.gz |
fix decoding if the aspect ratio changes
Originally committed as revision 2367 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo.c | 3 |
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 |