diff imgconvert.c @ 2785:c8d53188048d libavcodec

segfault fix
author michael
date Mon, 11 Jul 2005 00:43:21 +0000
parents 18b8b2dcc037
children ef2149182f1c
line wrap: on
line diff
--- a/imgconvert.c	Sun Jul 10 00:22:13 2005 +0000
+++ b/imgconvert.c	Mon Jul 11 00:43:21 2005 +0000
@@ -576,6 +576,8 @@
                            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;