mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
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>
This commit is contained in:
parent
23dfa00b88
commit
5420099cab
@ -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 &&
|
if (dstStride[0] * srcBpp == srcStride[0] * dstBpp && srcStride[0] > 0 &&
|
||||||
!(srcStride[0] % srcBpp))
|
!(srcStride[0] % srcBpp))
|
||||||
conv(srcPtr, dstPtr + dstStride[0] * srcSliceY,
|
conv(srcPtr, dstPtr + dstStride[0] * srcSliceY,
|
||||||
srcSliceH * srcStride[0]);
|
(srcSliceH - 1) * srcStride[0] + c->srcW * srcBpp);
|
||||||
else {
|
else {
|
||||||
int i;
|
int i;
|
||||||
dstPtr += dstStride[0] * srcSliceY;
|
dstPtr += dstStride[0] * srcSliceY;
|
||||||
|
Loading…
Reference in New Issue
Block a user