summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-03-21 20:39:02 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-04-05 16:40:51 -0400
commitbb0618e68b31db3ee8b572a39c2bb98d64338d52 (patch)
tree84b32c9c4b3e5d36a6fe4ef656a2b438d95a738f /libavcodec
parent5cc51a5847ca9f333672370b1aa98e2d9f9518aa (diff)
avcodec: remove avcodec_guess_channel_layout()
It is not public because the header is not installed, and its functionality has been replaced by av_get_default_channel_layout().
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/audioconvert.c14
-rw-r--r--libavcodec/audioconvert.h9
2 files changed, 0 insertions, 23 deletions
diff --git a/libavcodec/audioconvert.c b/libavcodec/audioconvert.c
index 0e1160d8e3..112e22096b 100644
--- a/libavcodec/audioconvert.c
+++ b/libavcodec/audioconvert.c
@@ -31,20 +31,6 @@
#include "avcodec.h"
#include "audioconvert.h"
-uint64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name)
-{
- switch(nb_channels) {
- case 1: return AV_CH_LAYOUT_MONO;
- case 2: return AV_CH_LAYOUT_STEREO;
- case 3: return AV_CH_LAYOUT_SURROUND;
- case 4: return AV_CH_LAYOUT_QUAD;
- case 5: return AV_CH_LAYOUT_5POINT0;
- case 6: return AV_CH_LAYOUT_5POINT1;
- case 8: return AV_CH_LAYOUT_7POINT1;
- default: return 0;
- }
-}
-
struct AVAudioConvert {
int in_channels, out_channels;
int fmt_pair;
diff --git a/libavcodec/audioconvert.h b/libavcodec/audioconvert.h
index 590dc8d8d7..a7b0baa828 100644
--- a/libavcodec/audioconvert.h
+++ b/libavcodec/audioconvert.h
@@ -33,15 +33,6 @@
#include "avcodec.h"
#include "libavutil/audioconvert.h"
-/**
- * Guess the channel layout
- * @param nb_channels
- * @param codec_id Codec identifier, or CODEC_ID_NONE if unknown
- * @param fmt_name Format name, or NULL if unknown
- * @return Channel layout mask
- */
-uint64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name);
-
struct AVAudioConvert;
typedef struct AVAudioConvert AVAudioConvert;