changeset 2785:c8d53188048d libavcodec

segfault fix
author michael
date Mon, 11 Jul 2005 00:43:21 +0000
parents cdf74a048614
children ee07e99e034f
files imgconvert.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;