summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-09-08 08:27:51 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-09-08 08:27:51 +0000
commit7b95bc58426ee1ba73e74d3c078e1e81261c14a3 (patch)
tree8b24378047879eea6a7833f726db0b7df96b4f61 /libavcodec/mpegaudiodec.c
parent3c573748946cfbd68334f071069f6b23d5cffe69 (diff)
print more correct error messges
Originally committed as revision 6194 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 73fa7f4a4b..1fbde20392 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -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);