[vlc-commits] demux: ts: fix regression with teletext set on magazine 1 (#23687)

Francois Cartegnie git at videolan.org
Wed Jan 29 18:30:19 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 29 18:11:25 2020 +0100| [a66aeb50d21d5bf62c1034c1fc711f898ba26122] | committer: Francois Cartegnie

demux: ts: fix regression with teletext set on magazine 1 (#23687)

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

 modules/demux/mpeg/ts_psi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index 02a543623f..fee488c22c 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -889,11 +889,10 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_stream_t *p_pes,
             for( unsigned i = 0; i < i_page; i++ )
             {
                 const ts_teletext_page_t *p = &p_page[i];
-                if(p->i_magazine == 1 && pass != TXT_INDEX_PAGE)
+                if(p->i_magazine !=1 && pass == TXT_INDEX_PAGE)
                     continue;
                 if((p->i_type == 0x02 || p->i_type == 0x05) && pass != TXT_SUBTITLES)
                     continue;
-
                 /* */
                 if( !p_page_es )
                 {



More information about the vlc-commits mailing list