[FFmpeg-cvslog] 4xm: don't rely on get_buffer() initializing the frame.
Anton Khirnov
git at videolan.org
Mon Jul 29 04:01:56 CEST 2013
ffmpeg | branch: release/0.10 | Anton Khirnov <anton at khirnov.net> | Tue Nov 13 22:10:54 2012 +0100| [078e68d2617fcb339896ca68503a06f07cfdb41f] | committer: Reinhard Tartler
4xm: don't rely on get_buffer() initializing the frame.
(cherry picked from commit b047c68783aa4042b322af7af043b643d5daf09c)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=078e68d2617fcb339896ca68503a06f07cfdb41f
---
libavcodec/4xm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 0d4f036..c210e46 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;
More information about the ffmpeg-cvslog
mailing list