aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-15 00:35:18 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-15 00:35:18 +0000
commitb100eab86950e4b48a8435d6b40f4c577a86ea93 (patch)
treeda5d7933a634d7eda0081762f92d9ae3a6479af1 /libavcodec/mpegvideo.c
parentd32064c0f71f27e57481dd988742bb1f232d44b3 (diff)
downloadffmpeg-b100eab86950e4b48a8435d6b40f4c577a86ea93.tar.gz
changing size segfault fix
Originally committed as revision 3463 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 325fe2033f..93b0431bdf 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -860,9 +860,12 @@ void MPV_common_end(MpegEncContext *s)
s->last_picture_ptr=
s->next_picture_ptr=
s->current_picture_ptr= NULL;
+ s->linesize= s->uvlinesize= 0;
for(i=0; i<3; i++)
av_freep(&s->visualization_buffer[i]);
+
+ avcodec_default_free_buffers(s->avctx);
}
#ifdef CONFIG_ENCODERS