fix decoding if the aspect ratio changes

Originally committed as revision 2367 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2003-10-12 21:32:58 +00:00
parent ed7debda14
commit 431f2172cd

View File

@ -555,6 +555,9 @@ void MPV_common_end(MpegEncContext *s)
} }
avcodec_default_free_buffers(s->avctx); avcodec_default_free_buffers(s->avctx);
s->context_initialized = 0; s->context_initialized = 0;
s->last_picture_ptr=
s->next_picture_ptr=
s->current_picture_ptr= NULL;
} }
#ifdef CONFIG_ENCODERS #ifdef CONFIG_ENCODERS