| 1993 | } |
| 1994 | |
| 1995 | static 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 | |
| 2021 | end: |
| 2022 | avtext_print_section_footer(tfc); |
| 2023 | return ret; |
| 2024 | } |
| 2025 | |
| 2026 | static int show_programs(AVTextFormatContext *tfc, InputFile *ifile) |
| 2027 | { |
no test coverage detected