avcodec/h264: h264_set_erpic() clear destination
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Mar 2014 04:52:05 +0000 (05:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Mar 2014 04:52:05 +0000 (05:52 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index 3817db6..6af869a 100644 (file)
@@ -3010,6 +3010,8 @@ static void h264_set_erpic(ERPicture *dst, H264Picture *src)
 {
     int i;
 
+    memset(dst, 0, sizeof(*dst));
+
     if (!src)
         return;