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;