avcodec/mpegvideo: ff_mpeg_set_erpic() clear destination
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Mar 2014 04:13:59 +0000 (05:13 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Mar 2014 04:13:59 +0000 (05:13 +0100)
Fixes crash

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo.c

index 6402a1f..30df400 100644 (file)
@@ -3199,6 +3199,7 @@ void ff_mpeg_set_erpic(ERPicture *dst, Picture *src)
 {
     int i;
 
+    memset(dst, 0, sizeof(*dst));
     if (!src)
         return;