mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02: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 &&
|
||||
!(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…
Reference in New Issue
Block a user