Fix decoding of teletext in ps files (the zvbi decoder expects the full PES packet...
authorAntoine Cellerier <dionoea@videolan.org>
Tue, 20 May 2008 14:10:47 +0000 (16:10 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Tue, 20 May 2008 14:10:47 +0000 (16:10 +0200)
modules/demux/ps.c

index 2f32f1a..ac588a7 100644 (file)
@@ -382,7 +382,8 @@ static int Demux( demux_t *p_demux )
             p_sys->i_scr = -1;
 
             if( tk->b_seen && tk->es &&
-                !ps_pkt_parse_pes( p_pkt, tk->i_skip ) )
+                ( tk->fmt.i_codec == VLC_FOURCC('t','e','l','x') ||
+                  !ps_pkt_parse_pes( p_pkt, tk->i_skip ) ) )
             {
                 if( !b_new && !p_sys->b_have_pack && tk->fmt.i_cat == AUDIO_ES && p_pkt->i_pts > 0 )
                 {