Skip to content
Permalink
Browse files Browse the repository at this point in the history
be stricter in PAT processing - cf #1269
  • Loading branch information
jeanlf committed Jul 7, 2019
1 parent 1ab4860 commit 98b7276
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/media_tools/mpegts.c
Expand Up @@ -1667,7 +1667,9 @@ static void gf_m2ts_process_pat(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *ses, GF
if (!ts->nit) {
ts->nit = gf_m2ts_section_filter_new(gf_m2ts_process_nit, 0);
}
} else {
} else if (!pid) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("Broken PAT found reserved PID 0, ignoring\n", pid));
} else if (! ts->ess[pid]) {
GF_SAFEALLOC(prog, GF_M2TS_Program);
if (!prog) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("Fail to allocate program for pid %d\n", pid));
Expand Down

0 comments on commit 98b7276

Please sign in to comment.