From: Francois Cartegnie Date: Mon, 16 Mar 2015 23:38:46 +0000 (+0100) Subject: demux: ts: fix potential segfault X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3ffffc439bed08183c178d197b2680ce58e59ae4;hp=551b670ff8d8a61b3a676961556649e684e6ff92;p=vlc demux: ts: fix potential segfault introduced by 1dec820c43290fe19ac8b291d70353943275b8fc --- diff --git a/modules/demux/ts.c b/modules/demux/ts.c index 8488186d9f..8bafb59dfd 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;