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

Function get_program

libavformat/mpegts.c:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279EXTERN const FFInputFormat ff_mpegts_demuxer;
280
281static struct Program * get_program(MpegTSContext *ts, unsigned int programid)
282{
283 int i;
284 if (!ts)
285 return NULL;
286 for (i = 0; i < ts->nb_prg; i++) {
287 if (ts->prg[i].id == programid) {
288 return &ts->prg[i];
289 }
290 }
291 return NULL;
292}
293
294static void clear_avprogram(MpegTSContext *ts, unsigned int programid)
295{

Callers 3

add_programFunction · 0.85
pmt_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected