You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/avuienc: Initialize output data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user