# HG changeset patch # User michael # Date 1076187026 0 # Node ID 11124a5d04f6ab4001cacac925feb8f4cb8e6115 # Parent 7da4bdafe42e8c45f4527d44d96a50893d5cf8cb segfault fix diff -r 7da4bdafe42e -r 11124a5d04f6 indeo3.c --- 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])