From 646838e4462f2cf72de0211cc9c5a1c5d2a9ebfc Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 10 Jul 2008 20:06:43 +0000 Subject: [PATCH] 100l, assignment introduced in r27246 was exactly the wrong way around. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27248 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/demux_audio.c b/libmpdemux/demux_audio.c index 20744182e1..600c2b0321 100644 --- a/libmpdemux/demux_audio.c +++ b/libmpdemux/demux_audio.c @@ -396,7 +396,7 @@ static int demux_audio_open(demuxer_t* demuxer) { 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;