Commit a9ba6193 authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/ogg.c: small fix to avoid crashing when find unknown codecs.
parent f5a90887
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ogg.c : ogg stream input module for vlc * ogg.c : ogg stream input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: ogg.c,v 1.3 2002/11/02 18:13:22 gbazin Exp $ * $Id: ogg.c,v 1.4 2002/11/02 22:47:16 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -363,9 +363,7 @@ static int Ogg_FindLogicalStreams( input_thread_t *p_input, demux_sys_t *p_ogg) ...@@ -363,9 +363,7 @@ static int Ogg_FindLogicalStreams( input_thread_t *p_input, demux_sys_t *p_ogg)
else else
{ {
msg_Dbg( p_input, "found unknown codec" ); msg_Dbg( p_input, "found unknown codec" );
ogg_stream_destroy( &p_stream->os ); p_stream->i_cat = UNKNOWN_ES;
free( p_stream );
p_ogg->i_streams--;
} }
#undef p_stream #undef p_stream
......
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