Commit 98fed176 authored by Paul B Mahol's avatar Paul B Mahol

alsdec: improve warning message when invalid channel position is found

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 57e99ea4
......@@ -358,7 +358,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
for (i = 0; i < avctx->channels; i++) {
sconf->chan_pos[i] = get_bits(&gb, chan_pos_bits);
if (sconf->chan_pos[i] >= avctx->channels) {
av_log(avctx, AV_LOG_WARNING, "Invalid original channel position.\n");
av_log(avctx, AV_LOG_WARNING, "Invalid channel reordering.\n");
sconf->chan_sort = 0;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment