mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-11 18:37:55 +08:00
segfault fix
Originally committed as revision 4430 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -576,6 +576,8 @@ static void img_copy_plane(uint8_t *dst, int dst_wrap,
|
|||||||
const uint8_t *src, int src_wrap,
|
const uint8_t *src, int src_wrap,
|
||||||
int width, int height)
|
int width, int height)
|
||||||
{
|
{
|
||||||
|
if((!dst) || (!src))
|
||||||
|
return;
|
||||||
for(;height > 0; height--) {
|
for(;height > 0; height--) {
|
||||||
memcpy(dst, src, width);
|
memcpy(dst, src, width);
|
||||||
dst += dst_wrap;
|
dst += dst_wrap;
|
||||||
|
Reference in New Issue
Block a user