Commit d00bff20 authored by Michael Niedermayer's avatar Michael Niedermayer

fix infinite loop

Originally committed as revision 5102 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 61452d56
......@@ -2008,8 +2008,10 @@ static int qdm2_decode_frame(AVCodecContext *avctx,
{
QDM2Context *s = avctx->priv_data;
if((buf == NULL) || (buf_size < s->checksum_size))
if(!buf)
return 0;
if(buf_size < s->checksum_size)
return -1;
*data_size = s->channels * s->frame_size * sizeof(int16_t);
......
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