diff indeo3.c @ 1793:11124a5d04f6 libavcodec

segfault fix
author michael
date Sat, 07 Feb 2004 20:50:26 +0000
parents 932d306bf1dc
children 141a9539e270
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])