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

Function av_find_program_from_stream

libavformat/avformat.c:329–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329AVProgram *av_find_program_from_stream(AVFormatContext *ic, AVProgram *last, int s)
330{
331 for (unsigned i = 0; i < ic->nb_programs; i++) {
332 if (ic->programs[i] == last) {
333 last = NULL;
334 } else {
335 if (!last)
336 for (unsigned j = 0; j < ic->programs[i]->nb_stream_indexes; j++)
337 if (ic->programs[i]->stream_index[j] == s)
338 return ic->programs[i];
339 }
340 }
341 return NULL;
342}
343
344int av_find_default_stream_index(AVFormatContext *s)
345{

Callers 6

update_wrap_referenceFunction · 0.85
update_stream_timingsFunction · 0.85
mpegts_push_dataFunction · 0.85
scte_data_cbFunction · 0.85
av_find_best_streamFunction · 0.85
stream_cycle_channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected