[vlc-commits] demux: ts: fix potential segfault
Francois Cartegnie
git at videolan.org
Tue Mar 17 00:40:09 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Mar 17 00:38:46 2015 +0100| [3ffffc439bed08183c178d197b2680ce58e59ae4] | committer: Francois Cartegnie
demux: ts: fix potential segfault
introduced by 1dec820c43290fe19ac8b291d70353943275b8fc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ffffc439bed08183c178d197b2680ce58e59ae4
---
modules/demux/ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 8488186..8bafb59 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2805,7 +2805,7 @@ static int ProbeChunk( demux_t *p_demux, int i_program, bool b_end, int64_t *pi_
(p_pkt->p_buffer[1] & 0xC0) == 0x40 && /* payload start */
(p_pkt->p_buffer[3] & 0xD0) == 0x10 && /* Has payload but is not encrypted */
p_pid->type == TYPE_PES &&
- p_pid->p_parent->u.p_pes->es.fmt.i_cat != UNKNOWN_ES
+ p_pid->u.p_pes->es.fmt.i_cat != UNKNOWN_ES
)
{
b_pcrresult = false;
More information about the vlc-commits
mailing list