summaryrefslogtreecommitdiff
path: root/libavcodec/audioconvert.h
diff options
context:
space:
mode:
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>2010-08-26 00:38:25 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-26 00:38:25 +0000
commit5da19b53c6e16c6ff86ee9aab4f8d0b4b1c3be5d (patch)
treedcc8d039451539801d37ed5c0efb0c7f982372be /libavcodec/audioconvert.h
parentf06d6c751f708a6a145bbf87520e7f59140bbbb2 (diff)
Implement avcodec_get_channel_layout().
Patch by S.N. Hemanth Meenakshisundaram smeenaks:ucsd+edu. Originally committed as revision 24936 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/audioconvert.h')
-rw-r--r--libavcodec/audioconvert.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/audioconvert.h b/libavcodec/audioconvert.h
index 81b6cded39..1f93b5c336 100644
--- a/libavcodec/audioconvert.h
+++ b/libavcodec/audioconvert.h
@@ -60,6 +60,11 @@ enum SampleFormat avcodec_get_sample_fmt(const char* name);
const char *avcodec_get_channel_name(int channel_id);
/**
+ * @return channel layout that matches name, 0 if no match
+ */
+int64_t avcodec_get_channel_layout(const char *name);
+
+/**
* Return description of channel layout
*/
void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout);