]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ogg.c: discard subtitles header packets (not sure this is the right...
authorGildas Bazin <gbazin@videolan.org>
Mon, 26 Sep 2005 21:00:27 +0000 (21:00 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 26 Sep 2005 21:00:27 +0000 (21:00 +0000)
modules/demux/ogg.c

index e808ea6d41f35810f851ba4c71d71919a08971b0..731946f4fdd1e210e5012afaf799ced332b7d849 100644 (file)
@@ -496,6 +496,9 @@ static void Ogg_DecodePacket( demux_t *p_demux,
         return; 
     }
 
+    if( p_stream->fmt.i_codec == VLC_FOURCC( 's','u','b','t' ) &&
+        p_oggpacket->packet[0] & PACKET_TYPE_BITS ) return;
+
     /* Check the ES is selected */
     es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE,
                     p_stream->p_es, &b_selected );