[FFmpeg-cvslog] Fix maxband limit when decoding mpc8.
Carl Eugen Hoyos
git at videolan.org
Wed Jun 6 13:21:03 CEST 2012
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Jun 6 13:09:02 2012 +0200| [bb321245777a89426aa2131887497bd5eead1d2e] | committer: Carl Eugen Hoyos
Fix maxband limit when decoding mpc8.
Fixes yesterday's merge of Kostya's fix for ticket #409.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb321245777a89426aa2131887497bd5eead1d2e
---
libavcodec/mpc8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpc8.c b/libavcodec/mpc8.c
index 9dacc29..3b98b5f 100644
--- a/libavcodec/mpc8.c
+++ b/libavcodec/mpc8.c
@@ -276,7 +276,7 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
if(maxband > 32) maxband -= 33;
}
- if(maxband > c->maxbands + 1 || maxband >= BANDS) {
+ if(maxband > c->maxbands + 1) {
av_log(avctx, AV_LOG_ERROR, "maxband %d too large\n",maxband);
return AVERROR_INVALIDDATA;
}
More information about the ffmpeg-cvslog
mailing list