summaryrefslogtreecommitdiff
path: root/libavcodec/avuienc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-07-05 22:32:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-07-05 23:05:25 +0200
commit0e7bbdbeaf7f42d2a277cd1206edd24a4c88f304 (patch)
tree56c7b7d04f93c37298334783d9fc75b4fd2b67e0 /libavcodec/avuienc.c
parent47496eb97cff8130991313d1b7292613620d8592 (diff)
avcodec/avuienc: Initialize output data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avuienc.c')
-rw-r--r--libavcodec/avuienc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/avuienc.c b/libavcodec/avuienc.c
index b91f782955..017619b4e4 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);