diff options
author | Pedro Arthur <bygrandao@gmail.com> | 2015-10-13 13:32:07 -0300 |
---|---|---|
committer | Pedro Arthur <bygrandao@gmail.com> | 2015-10-13 13:43:39 -0300 |
commit | 5bd62a1b3c3356b84818efca3fcaf52da27a32af (patch) | |
tree | 315f041e83eb44beeead3d743a5f2b4d79a5fca3 /libswscale/swscale.c | |
parent | de262d018d7d7d9c967af1dfd1b861c4b9eb2a60 (diff) | |
download | ffmpeg-5bd62a1b3c3356b84818efca3fcaf52da27a32af.tar.gz |
swscale: fix ticket #4881
When scaling only a slice of a frame the output was written always
in the first lines leaving the rest of the frame black.
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 2ccf38f3bb..1769348bbc 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -475,11 +475,11 @@ static int swscale(SwsContext *c, const uint8_t *src[], yuv2packed1, yuv2packed2, yuv2packedX, yuv2anyX, c->use_mmx_vfilter); ff_init_slice_from_src(src_slice, (uint8_t**)src, srcStride, c->srcW, - srcSliceY, srcSliceH, chrSrcSliceY, chrSrcSliceH); + srcSliceY, srcSliceH, chrSrcSliceY, chrSrcSliceH, 1); ff_init_slice_from_src(vout_slice, (uint8_t**)dst, dstStride, c->dstW, dstY, dstH, dstY >> c->chrDstVSubSample, - FF_CEIL_RSHIFT(dstH, c->chrDstVSubSample)); + FF_CEIL_RSHIFT(dstH, c->chrDstVSubSample), 0); if (srcSliceY == 0) { hout_slice->plane[0].sliceY = lastInLumBuf + 1; hout_slice->plane[1].sliceY = lastInChrBuf + 1; |