git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c57374
)
print more correct error messges
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 8 Sep 2006 08:27:51 +0000
(08:27 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 8 Sep 2006 08:27:51 +0000
(08:27 +0000)
Originally committed as revision 6194 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index
73fa7f4
..
1fbde20
100644
(file)
--- 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);