From 8ef9dcf1d74aea55bf39f1e479fe67e98d973954 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 17 Mar 2014 05:13:59 +0100 Subject: [PATCH] avcodec/mpegvideo: ff_mpeg_set_erpic() clear destination Fixes crash Signed-off-by: Michael Niedermayer --- libavcodec/mpegvideo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 6402a1f3d4..30df400099 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;