diff options
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r-- | libavcodec/4xm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index 05bc280067..c7e3c68ccf 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -901,6 +901,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return -1; } + for (i=0; i<avctx->height; i++) + memset(f->last_picture.data[0] + i*f->last_picture.linesize[0], 0, 2*avctx->width); } p->pict_type = AV_PICTURE_TYPE_P; |