[FFmpeg-cvslog] avcodec/avuienc: Initialize output data
Michael Niedermayer
git at videolan.org
Sun Jul 5 23:08:32 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jul 5 22:32:35 2015 +0200| [0e7bbdbeaf7f42d2a277cd1206edd24a4c88f304] | committer: Michael Niedermayer
avcodec/avuienc: Initialize output data
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e7bbdbeaf7f42d2a277cd1206edd24a4c88f304
---
libavcodec/avuienc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c
index b91f782..017619b 100644
--- a/libavcodec/avuienc.c
+++ b/libavcodec/avuienc.c
@@ -71,6 +71,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
return ret;
dst = pkt->data;
if (!interlaced) {
+ memset(dst, 0, avctx->width * skip);
dst += avctx->width * skip;
}
@@ -84,6 +85,7 @@ static int avui_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
} else {
src = pic->data[0] + i * pic->linesize[0];
}
+ memset(dst, 0, avctx->width * skip + 4 * i);
dst += avctx->width * skip + 4 * i;
for (j = 0; j < avctx->height; j += interlaced + 1) {
memcpy(dst, src, avctx->width * 2);
More information about the ffmpeg-cvslog
mailing list