[FFmpeg-cvslog] avcodec/mpegvideo: ff_mpeg_set_erpic() clear destination
Michael Niedermayer
git at videolan.org
Mon Mar 17 05:41:57 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 17 05:13:59 2014 +0100| [8ef9dcf1d74aea55bf39f1e479fe67e98d973954] | committer: Michael Niedermayer
avcodec/mpegvideo: ff_mpeg_set_erpic() clear destination
Fixes crash
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ef9dcf1d74aea55bf39f1e479fe67e98d973954
---
libavcodec/mpegvideo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 6402a1f..30df400 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -3199,6 +3199,7 @@ void ff_mpeg_set_erpic(ERPicture *dst, Picture *src)
{
int i;
+ memset(dst, 0, sizeof(*dst));
if (!src)
return;
More information about the ffmpeg-cvslog
mailing list