changeset 1793:11124a5d04f6 libavcodec

segfault fix
author michael
date Sat, 07 Feb 2004 20:50:26 +0000
parents 7da4bdafe42e
children d133b4ad0620
files indeo3.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/indeo3.c	Sat Feb 07 15:33:00 2004 +0000
+++ b/indeo3.c	Sat Feb 07 20:50:26 2004 +0000
@@ -1056,6 +1056,12 @@
     unsigned char *src, *dest;
     int y;
 
+    /* no supplementary picture */
+    if (buf_size == 0) {
+        *data_size = 0;
+        return 0;
+    }
+
     iv_decode_frame(s, buf, buf_size);
 
     if(s->frame.data[0])