diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-06 16:35:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-06 16:35:47 +0100 |
commit | 188c08247742e3d5b4ab20a9c009ac98e5c1e8bb (patch) | |
tree | 78504a8c438c17a6c95a64c078c9ec35c01ec8ce | |
parent | 2dd2ee96eb95da7d0cd96198d72296902453fac2 (diff) | |
download | ffmpeg-188c08247742e3d5b4ab20a9c009ac98e5c1e8bb.tar.gz |
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>
-rw-r--r-- | libavcodec/snowenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 1831cf6245..cc34cf3901 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -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; |