changeset 32550:90d5c68ddb7b

Fix WAVEFORMATEXTENSIBLE support on big-endian.
author reimar
date Sun, 21 Nov 2010 12:20:22 +0000
parents cf1f4f5bc096
children 72ee0026e441
files libmpdemux/demux_audio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Sat Nov 20 11:39:05 2010 +0000
+++ b/libmpdemux/demux_audio.c	Sun Nov 21 12:20:22 2010 +0000
@@ -419,7 +419,7 @@
       stream_read(s,(char*)(w + 1),w->cbSize);
       l -= w->cbSize;
       if (w->wFormatTag & 0xfffe && w->cbSize >= 22)
-          sh_audio->format = ((WAVEFORMATEXTENSIBLE *)w)->SubFormat;
+          sh_audio->format = av_le2ne16(((WAVEFORMATEXTENSIBLE *)w)->SubFormat);
     }
 
     if( mp_msg_test(MSGT_DEMUX,MSGL_V) ) print_wave_header(w, MSGL_V);