avutil/channel_layout: add av_get_extended_channel_layout

Return a channel layout and the number of channels based on the specified name.

This function is similar to av_get_channel_layout(), but can also parse unknown
channel layout specifications.

Unknown channel layout specifications are a decimal number and a capital 'C'
suffix, in order to not break compatibility with the lowercase 'c' suffix,
which is used for a guessed channel layout with the specified number of
channels.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint
2016-12-26 01:19:34 +01:00
parent 5049f05f27
commit c4618f842a
5 changed files with 46 additions and 2 deletions

View File

@@ -15,6 +15,9 @@ libavutil: 2015-08-28
API changes, most recent first:
2017-01-24 - xxxxxxx - lavu 55.45.100 - channel_layout.h
Add av_get_extended_channel_layout()
2017-01-22 - xxxxxxx - lavu 55.44.100 - lfg.h
Add av_lfg_init_from_data().