Commit 6fa20ac8 authored by michael's avatar michael

print more correct error messges


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6194 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 98231cc5
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment