mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
avutil/imgutils: don't add offsets to NULL pointers
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
6a9a4f34bd
commit
fc99d59553
@ -165,6 +165,9 @@ int av_image_fill_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt, int hei
|
||||
ret += sizes[i];
|
||||
}
|
||||
|
||||
if (!ptr)
|
||||
return ret;
|
||||
|
||||
data[0] = ptr;
|
||||
for (i = 1; i < 4 && sizes[i]; i++)
|
||||
data[i] = data[i - 1] + sizes[i - 1];
|
||||
|
Loading…
Reference in New Issue
Block a user