diff options
Diffstat (limited to 'libavcodec/wmaenc.c')
-rw-r--r-- | libavcodec/wmaenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index 5f502d269c..ce2c42320f 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -31,6 +31,8 @@ static int encode_init(AVCodecContext * avctx){ int i, flags1, flags2; uint8_t *extradata; + s->avctx = avctx; + if(avctx->channels > MAX_CHANNELS) return -1; |