diff options
author | Marton Balint <cus@passwd.hu> | 2018-07-03 13:09:13 +0300 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-07-13 23:24:33 +0300 |
commit | 5982078e8d56b84de4d538ab4d39f474b833cdc2 (patch) | |
tree | 5701bc5e5bde125744c7112c2ed664f7b8d81465 /libavcodec/utils.c | |
parent | 85bfcc46d192891891057085d36cb2daba4b5c4f (diff) |
avcodec/utils: report insane channel count errors
More than 64 is not *that* insane, so let's report the error at least.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 02e557eb05..4f9a2b76ef 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -674,6 +674,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code av_freep(&avctx->subtitle_header); if (avctx->channels > FF_SANE_NB_CHANNELS) { + av_log(avctx, AV_LOG_ERROR, "Too many channels: %d\n", avctx->channels); ret = AVERROR(EINVAL); goto free_and_end; } |