avutil: Add av_get_default_channel_layout()

Also, use the new function in the AC-3 encoder.
This commit is contained in:
Justin Ruggles
2012-03-21 20:36:51 -04:00
parent 0becb07842
commit 5cc51a5847
5 changed files with 25 additions and 2 deletions

View File

@@ -124,6 +124,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);
/**
* @}
*/