mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
check for error
Originally committed as revision 4183 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
369a02c2f4
commit
02af2269c0
@ -2628,7 +2628,10 @@ static int decode_frame(AVCodecContext * avctx,
|
||||
}
|
||||
s->inbuf_ptr = s->inbuf;
|
||||
s->frame_size = 0;
|
||||
*data_size = out_size;
|
||||
if(out_size>=0)
|
||||
*data_size = out_size;
|
||||
else
|
||||
av_log(avctx, AV_LOG_DEBUG, "Error while decoding mpeg audio frame\n"); //FIXME return -1 / but also return the number of bytes consumed
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user