diff audioconvert.h @ 9511:c2dba7ed94dc libavcodec

Check that channel layout is compatible with number of channels for output audio stream.
author jbr
date Sun, 19 Apr 2009 14:05:55 +0000
parents e9d9d946f213
children 7dd2a45249a9
line wrap: on
line diff
--- a/audioconvert.h	Sun Apr 19 00:55:46 2009 +0000
+++ b/audioconvert.h	Sun Apr 19 14:05:55 2009 +0000
@@ -73,6 +73,10 @@
  */
 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;