Browse Source

alsdec: improve warning message when invalid channel position is found

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 12 years ago
parent
commit
98fed176cf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/alsdec.c

+ 1
- 1
libavcodec/alsdec.c View File

@@ -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;
}


Loading…
Cancel
Save