4xm: don't rely on get_buffer() initializing the frame.
authorAnton Khirnov <anton@khirnov.net>
Tue, 13 Nov 2012 21:10:54 +0000 (22:10 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 23 Dec 2012 10:17:53 +0000 (11:17 +0100)
libavcodec/4xm.c

index 66149cc..fb03b7e 100644 (file)
@@ -854,6 +854,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
                 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
                 return -1;
             }
+            memset(f->last_picture.data[0], 0, avctx->height * FFABS(f->last_picture.linesize[0]));
         }
 
         p->pict_type = AV_PICTURE_TYPE_P;