[vlc-devel] commit: Fix decoding of teletext in ps files ( the zvbi decoder expects the full PES packet, I haven' t been able to test the telx.c decoder yet as I don' t have any ps file with teletext subtitles available). (Antoine Cellerier )

git version control git at videolan.org
Tue May 20 16:37:18 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue May 20 16:10:47 2008 +0200| [bbfb0053341db10afca4e72cf1dde091533af955]

Fix decoding of teletext in ps files (the zvbi decoder expects the full PES packet, I haven't been able to test the telx.c decoder yet as I don't have any ps file with teletext subtitles available).

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

 modules/demux/ps.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/ps.c b/modules/demux/ps.c
index 2f32f1a..ac588a7 100644
--- a/modules/demux/ps.c
+++ b/modules/demux/ps.c
@@ -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 )
                 {




More information about the vlc-devel mailing list