mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-23 02:11:14 +08:00
swscale/swscale_unscaled: don't add offsets to NULL pointers
Fixes: libswscale/swscale_unscaled.c:916:20: runtime error: applying zero offset to null pointer
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit af9b43455a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
ae1507fa79
commit
3f40dc723b
@@ -728,7 +728,7 @@ static int Rgb16ToPlanarRgb16Wrapper(SwsContext *c, const uint8_t *src[],
|
||||
return srcSliceH;
|
||||
}
|
||||
|
||||
for(i=0; i<4; i++) {
|
||||
for (i = 0; i < 4 && dst[i]; i++) {
|
||||
dst2013[i] += stride2013[i] * srcSliceY / 2;
|
||||
dst1023[i] += stride1023[i] * srcSliceY / 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user