Commit 68e3f348 authored by Laurent Aimar's avatar Laurent Aimar

* livedotcom.cpp: bug fix. (a bad memory allocation).

parent 08ae7414
......@@ -2,7 +2,7 @@
* live.cpp : live.com support.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: livedotcom.cpp,v 1.14 2004/01/25 20:05:28 hartman Exp $
* $Id: livedotcom.cpp,v 1.15 2004/02/22 16:01:42 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
......@@ -548,7 +548,7 @@ static int DemuxOpen ( vlc_object_t *p_this )
if( ( p_extra = parseStreamMuxConfigStr( sub->fmtp_config(), i_extra ) ) )
{
tk->fmt.i_extra = i_extra;
tk->fmt.p_extra = malloc( sizeof( i_extra ) );
tk->fmt.p_extra = malloc( i_extra );
memcpy( tk->fmt.p_extra, p_extra, i_extra );
delete[] p_extra;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment