diff --git a/libavutil/audioconvert.c b/libavutil/audioconvert.c index 9e2f812d7c..36d07ee5a4 100644 --- a/libavutil/audioconvert.c +++ b/libavutil/audioconvert.c @@ -202,3 +202,14 @@ int av_get_channel_layout_channel_index(uint64_t channel_layout, channel_layout &= channel - 1; return av_get_channel_layout_nb_channels(channel_layout); } + +const char *av_get_channel_name(uint64_t channel) +{ + int i; + if (av_get_channel_layout_nb_channels(channel) != 1) + return NULL; + for (i = 0; i < 64; i++) + if ((1ULL<