Browse code

Do not guess the channel layout when getting its string value.

Originally committed as revision 19185 to svn://svn.ffmpeg.org/ffmpeg/trunk

Justin Ruggles authored on 2009/06/14 07:33:13
Showing 1 changed files
... ...
@@ -124,9 +124,6 @@ void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels,
124 124
 {
125 125
     int i;
126 126
 
127
-    if (channel_layout==0)
128
-        channel_layout = avcodec_guess_channel_layout(nb_channels, CODEC_ID_NONE, NULL);
129
-
130 127
     for (i=0; channel_layout_map[i].name; i++)
131 128
         if (nb_channels    == channel_layout_map[i].nb_channels &&
132 129
             channel_layout == channel_layout_map[i].layout) {