changeset 27216:b05556cd284d

100l, assignment introduced in r27246 was exactly the wrong way around.
author reimar
date Thu, 10 Jul 2008 20:06:43 +0000
parents 3fce9487d1bb
children 28f249556ecc
files libmpdemux/demux_audio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Thu Jul 10 19:30:23 2008 +0000
+++ b/libmpdemux/demux_audio.c	Thu Jul 10 20:06:43 2008 +0000
@@ -396,7 +396,7 @@
       if (l < w->cbSize) {
         mp_msg(MSGT_DEMUX,MSGL_ERR,"[demux_audio] truncated extradata (%d < %d)\n",
                l,w->cbSize);
-        l = w->cbSize;
+        w->cbSize = l;
       }
       stream_read(s,(char*)((char*)(w)+sizeof(WAVEFORMATEX)),w->cbSize);
       l -= w->cbSize;