diff options
Diffstat (limited to 'libavcodec/aptx.c')
-rw-r--r-- | libavcodec/aptx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/aptx.c b/libavcodec/aptx.c index e3fb064..a2620a9 100644 --- a/libavcodec/aptx.c +++ b/libavcodec/aptx.c @@ -989,6 +989,9 @@ static av_cold int aptx_init(AVCodecContext *avctx) AptXContext *s = avctx->priv_data; int chan, subband; + if (avctx->channels != 2) + return AVERROR_INVALIDDATA; + s->hd = avctx->codec->id == AV_CODEC_ID_APTX_HD; s->block_size = s->hd ? 6 : 4; |