mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
segfault fix
Originally committed as revision 3128 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3178a86584
commit
270f878447
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user