mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/opus: Check count of ambisonic channels
https://tools.ietf.org/html/draft-ietf-codec-ambisonics-01#section-3.1 specifies the maximum as 227 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
fcf3e06fe4
commit
04e611474b
@ -381,6 +381,10 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx,
|
||||
" for nonnegative integer n\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
if (channels > 227) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Too many channels\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
layout = 0;
|
||||
} else
|
||||
layout = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user