mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
snowenc: initialize edges
This fixes a regression caused by changes to the buffer initialization code. Fixes valgrind warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2dd2ee96eb
commit
188c082477
@ -1671,6 +1671,11 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
memcpy(&s->input_picture.data[i][y * s->input_picture.linesize[i]],
|
memcpy(&s->input_picture.data[i][y * s->input_picture.linesize[i]],
|
||||||
&pict->data[i][y * pict->linesize[i]],
|
&pict->data[i][y * pict->linesize[i]],
|
||||||
width>>hshift);
|
width>>hshift);
|
||||||
|
s->dsp.draw_edges(s->input_picture.data[i], s->input_picture.linesize[i],
|
||||||
|
width >> hshift, height >> vshift,
|
||||||
|
EDGE_WIDTH >> hshift, EDGE_WIDTH >> vshift,
|
||||||
|
EDGE_TOP | EDGE_BOTTOM);
|
||||||
|
|
||||||
}
|
}
|
||||||
s->new_picture = *pict;
|
s->new_picture = *pict;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user