Revision 13690156 libavcodec/binkaudio.c

View differences:

libavcodec/binkaudio.c
85 85
    }
86 86
    s->frame_len = 1 << frame_len_bits;
87 87

  
88
    if (s->channels > MAX_CHANNELS) {
89
        av_log(s->avctx, AV_LOG_ERROR, "too many channels: %d\n", s->channels);
88
    if (avctx->channels > MAX_CHANNELS) {
89
        av_log(s->avctx, AV_LOG_ERROR, "too many channels: %d\n", avctx->channels);
90 90
        return -1;
91 91
    }
92 92

  

Also available in: Unified diff