Revision 71f88b1f libavcodec/binkaudio.c

View differences:

libavcodec/binkaudio.c
41 41
#define BINK_BLOCK_MAX_SIZE (MAX_CHANNELS << 11)
42 42

  
43 43
typedef struct {
44
    AVCodecContext *avctx;
45 44
    GetBitContext gb;
46 45
    DSPContext dsp;
47 46
    FmtConvertContext fmt_conv;
......
71 70
    int i;
72 71
    int frame_len_bits;
73 72

  
74
    s->avctx = avctx;
75 73
    dsputil_init(&s->dsp, avctx);
76 74
    ff_fmt_convert_init(&s->fmt_conv, avctx);
77 75

  
......
86 84
    s->frame_len = 1 << frame_len_bits;
87 85

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

  

Also available in: Unified diff