[MPlayer-cvslog] r32637 - trunk/libmpdemux/demux_audio.c

reimar subversion at mplayerhq.hu
Sun Nov 21 13:20:22 CET 2010


Author: reimar
Date: Sun Nov 21 13:20:22 2010
New Revision: 32637

Log:
Fix WAVEFORMATEXTENSIBLE support on big-endian.

Modified:
   trunk/libmpdemux/demux_audio.c

Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c	Sat Nov 20 12:39:05 2010	(r32636)
+++ trunk/libmpdemux/demux_audio.c	Sun Nov 21 13:20:22 2010	(r32637)
@@ -419,7 +419,7 @@ static int demux_audio_open(demuxer_t* d
       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);


More information about the MPlayer-cvslog mailing list