From 9baa0d3218f221118a38a28deac9137ace5b2a60 Mon Sep 17 00:00:00 2001 From: jbr Date: Sat, 13 Jun 2009 22:33:13 +0000 Subject: [PATCH] Do not guess the channel layout when getting its string value. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19185 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/audioconvert.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/audioconvert.c b/libavcodec/audioconvert.c index 4555128630..91ea7abdc4 100644 --- a/libavcodec/audioconvert.c +++ b/libavcodec/audioconvert.c @@ -124,9 +124,6 @@ void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, { int i; - if (channel_layout==0) - channel_layout = avcodec_guess_channel_layout(nb_channels, CODEC_ID_NONE, NULL); - for (i=0; channel_layout_map[i].name; i++) if (nb_channels == channel_layout_map[i].nb_channels && channel_layout == channel_layout_map[i].layout) { -- 2.11.4.GIT