diff options
author | 2010-11-21 12:20:22 +0000 | |
---|---|---|
committer | 2010-12-16 04:20:24 +0200 | |
commit | 9ffc22923ee7b705a30b7b6ad4704cdc8828a16a (patch) | |
tree | 7351f5918d4b36707e227810f805853d9f8ad844 /libmpdemux/demux_audio.c | |
parent | 1eb15a1304049678136814f2f99ab89ac0d0b7cc (diff) |
demux_audio: fix WAVEFORMATEXTENSIBLE support
Fix WAVEFORMATEXTENSIBLE support on big-endian.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32637 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix WAVEFORMATEXTENSIBLE condition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32638 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_audio.c')
-rw-r--r-- | libmpdemux/demux_audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demux_audio.c b/libmpdemux/demux_audio.c index 7f0bb5e55f..6d8b891cd7 100644 --- a/libmpdemux/demux_audio.c +++ b/libmpdemux/demux_audio.c @@ -414,8 +414,8 @@ static int demux_audio_open(demuxer_t* demuxer) { } stream_read(s,(char*)(w + 1),w->cbSize); l -= w->cbSize; - if (w->wFormatTag & 0xfffe && w->cbSize >= 22) - sh_audio->format = ((WAVEFORMATEXTENSIBLE *)w)->SubFormat; + if (w->wFormatTag == 0xfffe && w->cbSize >= 22) + sh_audio->format = av_le2ne16(((WAVEFORMATEXTENSIBLE *)w)->SubFormat); } if( mp_msg_test(MSGT_DEMUX,MSGL_V) ) print_wave_header(w, MSGL_V); |