You've already forked FFmpeg
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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user