Mercurial > libavcodec.hg
comparison svq1.c @ 2019:93edc9073ffc libavcodec
segfault fix
author | michael |
---|---|
date | Wed, 12 May 2004 02:50:48 +0000 |
parents | 552ae05eb513 |
children | a14873a809a8 |
comparison
equal
deleted
inserted
replaced
2018:552ae05eb513 | 2019:93edc9073ffc |
---|---|
713 MpegEncContext *s=avctx->priv_data; | 713 MpegEncContext *s=avctx->priv_data; |
714 uint8_t *current, *previous; | 714 uint8_t *current, *previous; |
715 int result, i, x, y, width, height; | 715 int result, i, x, y, width, height; |
716 AVFrame *pict = data; | 716 AVFrame *pict = data; |
717 | 717 |
718 *data_size=0; | |
719 | |
720 if(buf==NULL && buf_size==0){ | |
721 return 0; | |
722 } | |
723 | |
718 /* initialize bit buffer */ | 724 /* initialize bit buffer */ |
719 init_get_bits(&s->gb,buf,buf_size*8); | 725 init_get_bits(&s->gb,buf,buf_size*8); |
720 | 726 |
721 /* decode frame header */ | 727 /* decode frame header */ |
722 s->f_code = get_bits (&s->gb, 22); | 728 s->f_code = get_bits (&s->gb, 22); |