mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08: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