Mercurial > libavcodec.hg
changeset 2019:93edc9073ffc libavcodec
segfault fix
author | michael |
---|---|
date | Wed, 12 May 2004 02:50:48 +0000 |
parents | 552ae05eb513 |
children | a14873a809a8 |
files | svq1.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);