Commit 188c0824 authored by Michael Niedermayer's avatar Michael Niedermayer

snowenc: initialize edges

This fixes a regression caused by changes to the buffer initialization code.
Fixes valgrind warnings
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2dd2ee96
......@@ -1671,6 +1671,11 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
memcpy(&s->input_picture.data[i][y * s->input_picture.linesize[i]],
&pict->data[i][y * pict->linesize[i]],
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment