Commit eb72e405 authored by banan's avatar banan

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15766 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8317e252
......@@ -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;
......
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