changeset 32551:72ee0026e441

Fix WAVEFORMATEXTENSIBLE condition.
author reimar
date Sun, 21 Nov 2010 12:25:01 +0000
parents 90d5c68ddb7b
children 2e4da7887fd1
files libmpdemux/demux_audio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Sun Nov 21 12:20:22 2010 +0000
+++ b/libmpdemux/demux_audio.c	Sun Nov 21 12:25:01 2010 +0000
@@ -418,7 +418,7 @@
       }
       stream_read(s,(char*)(w + 1),w->cbSize);
       l -= w->cbSize;
-      if (w->wFormatTag & 0xfffe && w->cbSize >= 22)
+      if (w->wFormatTag == 0xfffe && w->cbSize >= 22)
           sh_audio->format = av_le2ne16(((WAVEFORMATEXTENSIBLE *)w)->SubFormat);
     }