diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-22 04:36:51 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-06 00:35:14 +0400 |
commit | 5cc51a5847ca9f333672370b1aa98e2d9f9518aa (patch) | |
tree | 087b26fb3aa8230682fef7fc408ba08d3359e3b4 /libavutil/audioconvert.h | |
parent | 0becb07842b57ea225ddf0726de33b5f8e669297 (diff) |
avutil: Add av_get_default_channel_layout()
Also, use the new function in the AC-3 encoder.
Diffstat (limited to 'libavutil/audioconvert.h')
-rw-r--r-- | libavutil/audioconvert.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/audioconvert.h b/libavutil/audioconvert.h index 55d79fc97e..2b0c9cdea9 100644 --- a/libavutil/audioconvert.h +++ b/libavutil/audioconvert.h @@ -125,6 +125,11 @@ void av_get_channel_layout_string(char *buf, int buf_size, int nb_channels, uint int av_get_channel_layout_nb_channels(uint64_t channel_layout); /** + * Return default channel layout for a given number of channels. + */ +uint64_t av_get_default_channel_layout(int nb_channels); + +/** * @} */ |