MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / add_pid_to_program

Function add_pid_to_program

libavformat/mpegts.c:349–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349static void add_pid_to_program(struct Program *p, unsigned int pid)
350{
351 int i;
352 if (!p)
353 return;
354
355 if (p->nb_pids >= MAX_PIDS_PER_PROGRAM)
356 return;
357
358 for (i = 0; i < p->nb_pids; i++)
359 if (p->pids[i] == pid)
360 return;
361
362 p->pids[p->nb_pids++] = pid;
363}
364
365static void update_av_program_info(AVFormatContext *s, unsigned int programid,
366 unsigned int pid, int version)

Callers 2

pmt_cbFunction · 0.85
pat_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected