summaryrefslogtreecommitdiff
path: root/libavcodec/audioconvert.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-04-19 14:05:55 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-04-19 14:05:55 +0000
commitbe233a569165ad39a63ff2137763a123cd4f2562 (patch)
treee4445370847f8297dad61cf77ed50443cae64fa1 /libavcodec/audioconvert.h
parentdc1ed614328edaf05745925392a2765c0ed49c92 (diff)
Check that channel layout is compatible with number of channels for
output audio stream. Originally committed as revision 18621 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/audioconvert.h')
-rw-r--r--libavcodec/audioconvert.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/audioconvert.h b/libavcodec/audioconvert.h
index 157bd44e21..46ba3d3929 100644
--- a/libavcodec/audioconvert.h
+++ b/libavcodec/audioconvert.h
@@ -73,6 +73,10 @@ void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels,
*/
int64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name);
+/**
+ * @return the number of channels in the channel layout.
+ */
+int avcodec_channel_layout_num_channels(int64_t channel_layout);
struct AVAudioConvert;
typedef struct AVAudioConvert AVAudioConvert;