# HG changeset patch # User michael # Date 1084330248 0 # Node ID 93edc9073ffc8fb575087d4f2e6d62db9a8b42ba # Parent 552ae05eb51372e85e5c9fa9f62e638fa8cc94bd segfault fix diff -r 552ae05eb513 -r 93edc9073ffc svq1.c --- a/svq1.c Wed May 12 02:19:12 2004 +0000 +++ b/svq1.c Wed May 12 02:50:48 2004 +0000 @@ -715,6 +715,12 @@ int result, i, x, y, width, height; AVFrame *pict = data; + *data_size=0; + + if(buf==NULL && buf_size==0){ + return 0; + } + /* initialize bit buffer */ init_get_bits(&s->gb,buf,buf_size*8);