提交 7b95bc58 编写于 作者: M Michael Niedermayer

print more correct error messges

Originally committed as revision 6194 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 3c573748
......@@ -2622,9 +2622,11 @@ retry:
break;
}
if(s->frame_size<=0 || s->frame_size < buf_size){
if(s->frame_size<=0 || s->frame_size > buf_size){
av_log(avctx, AV_LOG_ERROR, "incomplete frame\n");
return -1;
}else if(s->frame_size < buf_size){
av_log(avctx, AV_LOG_ERROR, "incorrect frame size\n");
}
out_size = mp_decode_frame(s, out_samples, buf, buf_size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册