[vlc-commits] commit: Fixed ogg demuxer with non xiph extra header (close #3379). ( Laurent Aimar )
git version control
git at videolan.org
Thu Mar 4 20:34:37 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Mar 4 20:31:34 2010 +0100| [18b79e8285aeb817a79effa001f854baa42c908d] | committer: Laurent Aimar
Fixed ogg demuxer with non xiph extra header (close #3379).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18b79e8285aeb817a79effa001f854baa42c908d
---
modules/demux/ogg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 4ccc546..57d0c02 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -673,7 +673,8 @@ static void Ogg_DecodePacket( demux_t *p_demux,
p_stream->p_headers = realloc( p_stream->p_headers, p_stream->i_headers );
if( p_stream->p_headers )
{
- memcpy( p_stream->p_headers, p_oggpacket->packet, p_stream->i_headers );
+ memcpy( p_stream->p_headers + p_stream->i_headers - p_oggpacket->bytes,
+ p_oggpacket->packet, p_stream->i_headers );
}
else
{
More information about the vlc-commits
mailing list