[vlc-devel] commit: ts demux: any teletext type of 1-5 is valid. (Derk-Jan Hartman )
git version control
git at videolan.org
Sun Sep 7 23:23:10 CEST 2008
vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Sat Sep 6 15:06:13 2008 +0200| [d3a2956228ad31e550240ba377bc8f3158c1a196] | committer: Derk-Jan Hartman
ts demux: any teletext type of 1-5 is valid.
See page 66 of ETSI EN 300 468
(cherry picked from commit a4112126cd1731582a0c86d00d6e13624a5bd551)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d3a2956228ad31e550240ba377bc8f3158c1a196
---
modules/demux/ts.c | 33 ++++++++++++++++++++++++++-------
1 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index dd8100a..e93ffa9 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -3377,9 +3377,8 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
for( n = 0; n < sub->i_pages_number; n++ )
{
dvbpsi_teletextpage_t *p_page = &sub->p_pages[n];
- if( p_page->i_teletext_type == 0x1 ||
- p_page->i_teletext_type == 0x2 ||
- p_page->i_teletext_type == 0x5 )
+ if( p_page->i_teletext_type > 0x0 &&
+ p_page->i_teletext_type < 0x6 )
{
ts_es_t *p_es;
@@ -3419,9 +3418,9 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
{
case 0x1:
p_es->fmt.psz_description =
- strdup(_("Teletext initial page"));
+ strdup(_("Teletext"));
msg_Dbg( p_demux,
- " * sub lan=%s page=%d%x",
+ " * ttxt lan=%s page=%d%02x",
p_es->fmt.psz_language,
p_page->i_teletext_magazine_number,
p_page->i_teletext_page_number );
@@ -3431,7 +3430,27 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
p_es->fmt.psz_description =
strdup(_("Teletext subtitles"));
msg_Dbg( p_demux,
- " * sub lan=%s page=%d%x",
+ " * sub lan=%s page=%d%02x",
+ p_es->fmt.psz_language,
+ p_page->i_teletext_magazine_number,
+ p_page->i_teletext_page_number );
+ break;
+
+ case 0x3:
+ p_es->fmt.psz_description =
+ strdup(_("Teletext additional information"));
+ msg_Dbg( p_demux,
+ " * info lan=%s page=%d%02x",
+ p_es->fmt.psz_language,
+ p_page->i_teletext_magazine_number,
+ p_page->i_teletext_page_number );
+ break;
+
+ case 0x4:
+ p_es->fmt.psz_description =
+ strdup(_("Teletext programme schedule"));
+ msg_Dbg( p_demux,
+ " * sched lan=%s page=%d%02x",
p_es->fmt.psz_language,
p_page->i_teletext_magazine_number,
p_page->i_teletext_page_number );
@@ -3441,7 +3460,7 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
p_es->fmt.psz_description =
strdup(_("Teletext hearing impaired subtitles"));
msg_Dbg( p_demux,
- " * hearing impaired lan=%s page=%d%x",
+ " * hearing impaired lan=%s page=%d%02x",
p_es->fmt.psz_language,
p_page->i_teletext_magazine_number,
p_page->i_teletext_page_number );
More information about the vlc-devel
mailing list