mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
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
This commit is contained in:
parent
1eb15a1304
commit
9ffc22923e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user