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

Function clear_avprogram

libavformat/mpegts.c:294–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static void clear_avprogram(MpegTSContext *ts, unsigned int programid)
295{
296 AVProgram *prg = NULL;
297 int i;
298
299 for (i = 0; i < ts->stream->nb_programs; i++)
300 if (ts->stream->programs[i]->id == programid) {
301 prg = ts->stream->programs[i];
302 break;
303 }
304 if (!prg)
305 return;
306 prg->nb_stream_indexes = 0;
307}
308
309static void clear_program(struct Program *p)
310{

Callers 2

pmt_cbFunction · 0.85
pat_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected