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

Function show_program

fftools/ffprobe.c:1995–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1993}
1994
1995static int show_program(AVTextFormatContext *tfc, InputFile *ifile, AVProgram *program)
1996{
1997 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
1998 int i, ret = 0;
1999
2000 avtext_print_section_header(tfc, NULL, SECTION_ID_PROGRAM);
2001 print_int("program_id", program->id);
2002 print_int("program_num", program->program_num);
2003 print_int("nb_streams", program->nb_stream_indexes);
2004 print_int("pmt_pid", program->pmt_pid);
2005 print_int("pcr_pid", program->pcr_pid);
2006 if (do_show_program_tags)
2007 ret = show_tags(tfc, program->metadata, SECTION_ID_PROGRAM_TAGS);
2008 if (ret < 0)
2009 goto end;
2010
2011 avtext_print_section_header(tfc, NULL, SECTION_ID_PROGRAM_STREAMS);
2012 for (i = 0; i < program->nb_stream_indexes; i++) {
2013 if (selected_streams[program->stream_index[i]]) {
2014 ret = show_stream(tfc, fmt_ctx, program->stream_index[i], &ifile->streams[program->stream_index[i]], IN_PROGRAM);
2015 if (ret < 0)
2016 break;
2017 }
2018 }
2019 avtext_print_section_footer(tfc);
2020
2021end:
2022 avtext_print_section_footer(tfc);
2023 return ret;
2024}
2025
2026static int show_programs(AVTextFormatContext *tfc, InputFile *ifile)
2027{

Callers 1

show_programsFunction · 0.85

Calls 4

show_tagsFunction · 0.85
show_streamFunction · 0.85

Tested by

no test coverage detected