Commit d76ae527 authored by michael's avatar michael

segfault fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3128 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9ae71b37
...@@ -715,6 +715,12 @@ static int svq1_decode_frame(AVCodecContext *avctx, ...@@ -715,6 +715,12 @@ static int svq1_decode_frame(AVCodecContext *avctx,
int result, i, x, y, width, height; int result, i, x, y, width, height;
AVFrame *pict = data; AVFrame *pict = data;
*data_size=0;
if(buf==NULL && buf_size==0){
return 0;
}
/* initialize bit buffer */ /* initialize bit buffer */
init_get_bits(&s->gb,buf,buf_size*8); init_get_bits(&s->gb,buf,buf_size*8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment