Unified · Split
| @@ -44,7 +44,7 @@ static av_cold int liblc3_decode_init(AVCodecContext *avctx) · 43 unmodified lines | |||
| 44 | int ep_mode; | 44 | int ep_mode; |
| 45 | unsigned decoder_size; | 45 | unsigned decoder_size; |
| 46 | 46 | ||
| 47 | if (avctx->extradata_size < 10) | 47 | if (avctx->extradata_size < 6) |
| 48 | return AVERROR_INVALIDDATA; | 48 | return AVERROR_INVALIDDATA; |
| 49 | if (channels < 0 || channels > DECODER_MAX_CHANNELS) { | 49 | if (channels < 0 || channels > DECODER_MAX_CHANNELS) { |
| 50 | av_log(avctx, AV_LOG_ERROR, | 50 | av_log(avctx, AV_LOG_ERROR, |