[FFmpeg-cvslog] 4xm: don't rely on get_buffer() initializing the frame.
Anton Khirnov
git at videolan.org
Sun Dec 23 14:59:11 CET 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Nov 13 22:10:54 2012 +0100| [b047c68783aa4042b322af7af043b643d5daf09c] | committer: Anton Khirnov
4xm: don't rely on get_buffer() initializing the frame.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b047c68783aa4042b322af7af043b643d5daf09c
---
libavcodec/4xm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 66149cc..fb03b7e 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;
More information about the ffmpeg-cvslog
mailing list