[vlc-commits] demux: ts: reject ffmpeg/libav default SDT

Francois Cartegnie git at videolan.org
Fri Feb 23 15:54:24 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 23 11:43:29 2018 +0100| [ffc0159b42592621559b12fc9201d6cc6093fa40] | committer: Francois Cartegnie

demux: ts: reject ffmpeg/libav default SDT

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

 modules/demux/mpeg/ts_si.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/demux/mpeg/ts_si.c b/modules/demux/mpeg/ts_si.c
index 466e610617..adb7ad5833 100644
--- a/modules/demux/mpeg/ts_si.c
+++ b/modules/demux/mpeg/ts_si.c
@@ -263,10 +263,13 @@ static void SDTCallBack( demux_t *p_demux, dvbpsi_sdt_t *p_sdt )
                 msg_Dbg( p_demux, "    - type=%"PRIu8" provider=%s name=%s",
                          pD->i_service_type, str1, str2 );
 
-                vlc_meta_SetTitle( p_meta, str2 );
-                vlc_meta_SetPublisher( p_meta, str1 );
-                if( pD->i_service_type >= 0x01 && pD->i_service_type <= 0x10 )
-                    psz_type = ppsz_type[pD->i_service_type];
+                if( strcmp( "Service01", str2 ) ) /* Skip bogus libav/ffmpeg SDT */
+                {
+                    vlc_meta_SetTitle( p_meta, str2 );
+                    vlc_meta_SetPublisher( p_meta, str1 );
+                    if( pD->i_service_type >= 0x01 && pD->i_service_type <= 0x10 )
+                        psz_type = ppsz_type[pD->i_service_type];
+                }
                 free( str1 );
                 free( str2 );
             }



More information about the vlc-commits mailing list