1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

swscale/swscale_unscaled: don't add offsets to more NULL pointers

Continuation of af9b43455a.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-07-18 21:35:26 -03:00
parent 6302ff1fd9
commit 11032d819d

View File

@ -806,7 +806,7 @@ static void packed16togbra16(const uint8_t *src, int srcStride,
}
}
}
for (i = 0; i < 4; i++)
for (i = 0; i < 4 && dst[i]; i++)
dst[i] += dstStride[i] >> 1;
}
}
@ -878,7 +878,7 @@ static void packed30togbra10(const uint8_t *src, int srcStride,
}
break;
}
for (i = 0; i < 4; i++)
for (i = 0; i < 4 && dst[i]; i++)
dst[i] += dstStride[i] >> 1;
}
}