summaryrefslogtreecommitdiff
path: root/libavcodec/4xm.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-13 22:10:54 +0100
committerAnton Khirnov <anton@khirnov.net>2012-12-23 11:17:53 +0100
commitb047c68783aa4042b322af7af043b643d5daf09c (patch)
tree1124e0bbb4524091e517e0d8627dbaaee56a9603 /libavcodec/4xm.c
parent2ca5ca2957607cf9604cc6068a9ebc898ff37b06 (diff)
4xm: don't rely on get_buffer() initializing the frame.
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r--libavcodec/4xm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 66149cc3e7..fb03b7e1ba 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -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;