diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index 0d4f036b3a..c210e46e13 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -807,6 +807,7 @@ static int decode_frame(AVCodecContext *avctx, 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;