diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-07-11 00:43:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-07-11 00:43:21 +0000 |
commit | 5b2ad9f520c77ab4b41dfb7086680770350a85ed (patch) | |
tree | 04f31f855111ff63a2bb0abcb0160cea336eb4a8 /libavcodec/imgconvert.c | |
parent | 56b04ceb472f0807ec983aff11156c41103ab838 (diff) | |
download | ffmpeg-5b2ad9f520c77ab4b41dfb7086680770350a85ed.tar.gz |
segfault fix
Originally committed as revision 4430 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 1ba723a957..afb66fa85a 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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; |