Module: ffmpeg Branch: master Commit: 9806fbd5351fa84f99fa5b18fe06859acb514f34
Author: Peter Ross <[email protected]> Date: Tue Feb 15 11:58:51 2011 +0000 binkaudio: fix channel count check Perform validity check on AVFormatContext.channels instead of uninitialised field. This fixes issue 2001. Signed-off-by: Mans Rullgard <[email protected]> --- libavcodec/binkaudio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c index 5348465..ae3db5d 100644 --- a/libavcodec/binkaudio.c +++ b/libavcodec/binkaudio.c @@ -85,8 +85,8 @@ static av_cold int decode_init(AVCodecContext *avctx) } s->frame_len = 1 << frame_len_bits; - if (s->channels > MAX_CHANNELS) { - av_log(s->avctx, AV_LOG_ERROR, "too many channels: %d\n", s->channels); + if (avctx->channels > MAX_CHANNELS) { + av_log(s->avctx, AV_LOG_ERROR, "too many channels: %d\n", avctx->channels); return -1; } _______________________________________________ ffmpeg-commits mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-commits
