mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-25 15:33:49 +00:00
segfault fix
Originally committed as revision 4430 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
56b04ceb47
commit
5b2ad9f520
@ -576,6 +576,8 @@ static void img_copy_plane(uint8_t *dst, int dst_wrap,
|
||||
const uint8_t *src, int src_wrap,
|
||||
int width, int height)
|
||||
{
|
||||
if((!dst) || (!src))
|
||||
return;
|
||||
for(;height > 0; height--) {
|
||||
memcpy(dst, src, width);
|
||||
dst += dst_wrap;
|
||||
|
Loading…
x
Reference in New Issue
Block a user