Commit 9236f9f6 authored by Laurent Aimar's avatar Laurent Aimar

Fixed double free.

Fixed double free.
parent 442eb5a4
...@@ -667,8 +667,7 @@ static void Ogg_DecodePacket( demux_t *p_demux, ...@@ -667,8 +667,7 @@ static void Ogg_DecodePacket( demux_t *p_demux,
free( p_stream->fmt.p_extra ); free( p_stream->fmt.p_extra );
p_stream->fmt.i_extra = p_stream->i_headers; p_stream->fmt.i_extra = p_stream->i_headers;
p_stream->fmt.p_extra = p_stream->fmt.p_extra = malloc( p_stream->i_headers );
realloc( p_stream->fmt.p_extra, p_stream->i_headers );
if( p_stream->fmt.p_extra ) if( p_stream->fmt.p_extra )
memcpy( p_stream->fmt.p_extra, p_stream->p_headers, memcpy( p_stream->fmt.p_extra, p_stream->p_headers,
p_stream->i_headers ); p_stream->i_headers );
......
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