[vlc-commits] demux: ogg: don't set up unknown streams

Francois Cartegnie git at videolan.org
Thu May 31 18:47:53 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 30 17:12:01 2018 +0200| [1a1d764a4d6e200ea26128a0f3f5cbdb008195ae] | committer: Francois Cartegnie

demux: ogg: don't set up unknown streams

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a1d764a4d6e200ea26128a0f3f5cbdb008195ae
---

 modules/demux/ogg.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 2d2b5ab955..eeaf09acaa 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2087,8 +2087,11 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
                 }
                 else
                 {
+                    Ogg_LogicalStreamDelete( p_demux, p_stream );
+                    p_stream = NULL;
+                    p_ogg->i_streams--;
                     msg_Dbg( p_demux, "stream %d is of unknown type",
-                             p_ogg->i_streams-1 );
+                             p_ogg->i_streams );
                 }
 
                 /* we'll need to get all headers */



More information about the vlc-commits mailing list