diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-11-13 22:10:54 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2013-06-30 16:15:04 +0200 |
commit | 078e68d2617fcb339896ca68503a06f07cfdb41f (patch) | |
tree | 6177b885de138e4e648e452bc7b562d2839cb419 /libavcodec/4xm.c | |
parent | 9248f789d1fa8e12ea2fd3073d7bb5cd13d654a6 (diff) | |
download | ffmpeg-078e68d2617fcb339896ca68503a06f07cfdb41f.tar.gz |
4xm: don't rely on get_buffer() initializing the frame.
(cherry picked from commit b047c68783aa4042b322af7af043b643d5daf09c)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r-- | libavcodec/4xm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |