diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-21 20:36:51 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-05 16:35:14 -0400 |
commit | 5cc51a5847ca9f333672370b1aa98e2d9f9518aa (patch) | |
tree | 087b26fb3aa8230682fef7fc408ba08d3359e3b4 /libavcodec | |
parent | 0becb07842b57ea225ddf0726de33b5f8e669297 (diff) | |
download | ffmpeg-5cc51a5847ca9f333672370b1aa98e2d9f9518aa.tar.gz |
avutil: Add av_get_default_channel_layout()
Also, use the new function in the AC-3 encoder.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ac3enc.c | 2 |
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; |