summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-05 02:46:50 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-05 02:46:50 +0000
commit6b8b2a51e5fb84713599d53587faa7e7d9090540 (patch)
tree630da688e2520f12b29b6d876687f2fc8a1bce37 /libmpcodecs
parentb5ed673f32e33363d94d8156bda052465b0c9121 (diff)
downloadmpv-6b8b2a51e5fb84713599d53587faa7e7d9090540.tar.bz2
mpv-6b8b2a51e5fb84713599d53587faa7e7d9090540.tar.xz
Fix ffvorbis decoder's output channel order with channel reordering function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26164 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/ad_ffmpeg.c b/libmpcodecs/ad_ffmpeg.c
index 4fa95ce89b..d569d0835d 100644
--- a/libmpcodecs/ad_ffmpeg.c
+++ b/libmpcodecs/ad_ffmpeg.c
@@ -175,6 +175,8 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
src_ch_layout = AF_CHANNEL_LAYOUT_AAC_DEFAULT;
else if (!strcasecmp(codec, "liba52"))
src_ch_layout = AF_CHANNEL_LAYOUT_LAVC_LIBA52_DEFAULT;
+ else if (!strcasecmp(codec, "vorbis"))
+ src_ch_layout = AF_CHANNEL_LAYOUT_LAVC_VORBIS_DEFAULT;
else
src_ch_layout = AF_CHANNEL_LAYOUT_MPLAYER_DEFAULT;
reorder_channel_nch(buf, src_ch_layout,