Browse Source

Guess channel layout based on the number of channels if a custom layout is specified in amode.

Originally committed as revision 15766 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Benjamin Larsson 17 years ago
parent
commit
48dc2fb800
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      libavcodec/dca.c

+ 0
- 5
libavcodec/dca.c View File

@@ -1215,11 +1215,6 @@ static int dca_decode_frame(AVCodecContext * avctx,
}
if (s->amode<16)
avctx->channel_layout = dca_core_channel_layout[s->amode];
else {
av_log(avctx, AV_LOG_ERROR, "Custom channel layouts not supported\n");
//Maybe just guess layout depending on the channel count
return -1;
}

if (s->lfe) avctx->channel_layout |= CHANNEL_LOW_FREQUENCY;



Loading…
Cancel
Save