avcodec: remove avcodec_guess_channel_layout()
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 22 Mar 2012 00:39:02 +0000 (20:39 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 5 Apr 2012 20:40:51 +0000 (16:40 -0400)
It is not public because the header is not installed, and its functionality
has been replaced by av_get_default_channel_layout().

libavcodec/audioconvert.c
libavcodec/audioconvert.h

index 0e1160d..112e220 100644 (file)
 #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;
index 590dc8d..a7b0baa 100644 (file)
 #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;