summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-03-21 20:36:51 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-04-05 16:35:14 -0400
commit5cc51a5847ca9f333672370b1aa98e2d9f9518aa (patch)
tree087b26fb3aa8230682fef7fc408ba08d3359e3b4 /libavcodec/ac3enc.c
parent0becb07842b57ea225ddf0726de33b5f8e669297 (diff)
avutil: Add av_get_default_channel_layout()
Also, use the new function in the AC-3 encoder.
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index c903b724d5..3962fab748 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -2074,7 +2074,7 @@ static av_cold int set_channel_info(AC3EncodeContext *s, int channels,
return AVERROR(EINVAL);
ch_layout = *channel_layout;
if (!ch_layout)
- ch_layout = avcodec_guess_channel_layout(channels, CODEC_ID_AC3, NULL);
+ ch_layout = av_get_default_channel_layout(channels);
s->lfe_on = !!(ch_layout & AV_CH_LOW_FREQUENCY);
s->channels = channels;