diff options
author | jstebbins <[email protected]> | 2012-06-25 07:56:49 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2012-06-25 07:56:49 +0000 |
commit | efbf9c29a90a8590080c98a53a67cb5e98cddb02 (patch) | |
tree | 2e2e1748ea3ce9ad24fe7ba8413b43ada2ec764b /libhb/decavcodec.c | |
parent | 7e1d3dc3448805803138cb4fe4ad1e1c8d6f1c85 (diff) |
libhb: fix deinterlace fast problem with sources that have <mod8 alignment
avpicture_deinterlace requires that both width and height of the input
be 8 pixel aligned. Video buffers already have padding to align horizontally
to 16 pixels, but they were not padded vertically. This adds vertical
padding.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4776 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 8a236ca4a..875a94c67 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -578,13 +578,16 @@ static hb_buffer_t *copy_frame( hb_work_private_t *pv, AVFrame *frame ) { w = buf->plane[0].stride; h = buf->plane[0].height; - dst = copy_plane( dst, frame->data[0], w, frame->linesize[0], h ); + dst = buf->plane[0].data; + copy_plane( dst, frame->data[0], w, frame->linesize[0], h ); w = buf->plane[1].stride; h = buf->plane[1].height; - dst = copy_plane( dst, frame->data[1], w, frame->linesize[1], h ); + dst = buf->plane[1].data; + copy_plane( dst, frame->data[1], w, frame->linesize[1], h ); w = buf->plane[2].stride; h = buf->plane[2].height; - dst = copy_plane( dst, frame->data[2], w, frame->linesize[2], h ); + dst = buf->plane[2].data; + copy_plane( dst, frame->data[2], w, frame->linesize[2], h ); } return buf; } |