swscale: correctly pad destination buffer in rgb conversion

Bug-Id: 772
CC: libav-stable@libav.org
Found-By: Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
pull/80/head
Kostya Shishkov 11 years ago committed by Vittorio Giovara
parent 23dfa00b88
commit 5420099cab
  1. 2
      libswscale/swscale_unscaled.c

@ -677,7 +677,7 @@ static int rgbToRgbWrapper(SwsContext *c, const uint8_t *src[], int srcStride[],
if (dstStride[0] * srcBpp == srcStride[0] * dstBpp && srcStride[0] > 0 &&
!(srcStride[0] % srcBpp))
conv(srcPtr, dstPtr + dstStride[0] * srcSliceY,
srcSliceH * srcStride[0]);
(srcSliceH - 1) * srcStride[0] + c->srcW * srcBpp);
else {
int i;
dstPtr += dstStride[0] * srcSliceY;

Loading…
Cancel
Save