[vlc-commits] Fixed handling of extra data in wav demuxer.
Laurent Aimar
git at videolan.org
Sun Jun 26 18:40:54 CEST 2011
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jun 26 18:37:53 2011 +0200| [2d4abf534919da1ba4152a967604240da6607075] | committer: Laurent Aimar
Fixed handling of extra data in wav demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d4abf534919da1ba4152a967604240da6607075
---
modules/demux/wav.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 3c3a012..4a96f0e 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -291,7 +291,7 @@ static int Open( vlc_object_t * p_this )
p_sys->fmt.i_extra = 0;
goto error;
}
- memcpy( p_sys->fmt.p_extra, ((uint8_t *)p_wf) + i_extended,
+ memcpy( p_sys->fmt.p_extra, (uint8_t *)p_wf + sizeof( WAVEFORMATEX ) + i_extended,
p_sys->fmt.i_extra );
}
More information about the vlc-commits
mailing list