[vlc-commits] demux: ts: don't probe corrupted payloads

Francois Cartegnie git at videolan.org
Tue Feb 28 17:30:40 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 28 17:27:48 2017 +0100| [80ba9b472cfab8ab74b3a7ce9a3d7eee67a122dd] | committer: Francois Cartegnie

demux: ts: don't probe corrupted payloads

allows fake pcr detection and then wrong hotfix

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

 modules/demux/mpeg/ts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 2d60c1e..eb72a0a 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -662,6 +662,7 @@ static int Demux( demux_t *p_demux )
 
         /* Probe streams to build PAT/PMT after MIN_PAT_INTERVAL in case we don't see any PAT */
         if( !SEEN( GetPID( p_sys, 0 ) ) &&
+            (p_pkt->i_flags & BLOCK_FLAG_CORRUPTED) == 0 &&
             (p_pid->probed.i_fourcc == 0 || p_pid->i_pid == p_sys->patfix.i_timesourcepid) &&
             (p_pkt->p_buffer[1] & 0xC0) == 0x40 && /* Payload start but not corrupt */
             (p_pkt->p_buffer[3] & 0xD0) == 0x10 )  /* Has payload but is not encrypted */



More information about the vlc-commits mailing list