[vlc-commits] demux: ts: drop invalid payload
Francois Cartegnie
git at videolan.org
Wed Dec 14 16:02:13 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 14 16:00:41 2016 +0100| [9158b9645f8ada0529308ebcb16b7dac17c32d7a] | committer: Francois Cartegnie
demux: ts: drop invalid payload
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9158b9645f8ada0529308ebcb16b7dac17c32d7a
---
modules/demux/mpeg/ts.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 70fec10..3f61744 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -2432,7 +2432,8 @@ static bool ProcessTSPacket( demux_t *p_demux, ts_pid_t *pid, block_t *p_pkt )
}
}
- if( i_skip >= 188 )
+ if( i_skip >= 188 ||
+ unlikely(!(b_payload || b_adaptation)) ) /* Invalid */
{
block_Release( p_pkt );
return b_ret;
More information about the vlc-commits
mailing list