summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/demux_audio.c4
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);