Mercurial > libavformat.hg
comparison utils.c @ 5456:90b61b66076d libavformat
dump metadata for AVStreams & AVPrograms too.
author | michael |
---|---|
date | Sun, 13 Dec 2009 23:27:43 +0000 |
parents | df772456ed85 |
children | b545a1df03eb |
comparison
equal
deleted
inserted
replaced
5455:df772456ed85 | 5456:90b61b66076d |
---|---|
2902 print_fps(1/av_q2d(st->time_base), "tbn"); | 2902 print_fps(1/av_q2d(st->time_base), "tbn"); |
2903 if(st->codec->time_base.den && st->codec->time_base.num) | 2903 if(st->codec->time_base.den && st->codec->time_base.num) |
2904 print_fps(1/av_q2d(st->codec->time_base), "tbc"); | 2904 print_fps(1/av_q2d(st->codec->time_base), "tbc"); |
2905 } | 2905 } |
2906 av_log(NULL, AV_LOG_INFO, "\n"); | 2906 av_log(NULL, AV_LOG_INFO, "\n"); |
2907 dump_metadata(NULL, st->metadata, " "); | |
2907 } | 2908 } |
2908 | 2909 |
2909 void dump_format(AVFormatContext *ic, | 2910 void dump_format(AVFormatContext *ic, |
2910 int index, | 2911 int index, |
2911 const char *url, | 2912 const char *url, |
2957 for(j=0; j<ic->nb_programs; j++) { | 2958 for(j=0; j<ic->nb_programs; j++) { |
2958 AVMetadataTag *name = av_metadata_get(ic->programs[j]->metadata, | 2959 AVMetadataTag *name = av_metadata_get(ic->programs[j]->metadata, |
2959 "name", NULL, 0); | 2960 "name", NULL, 0); |
2960 av_log(NULL, AV_LOG_INFO, " Program %d %s\n", ic->programs[j]->id, | 2961 av_log(NULL, AV_LOG_INFO, " Program %d %s\n", ic->programs[j]->id, |
2961 name ? name->value : ""); | 2962 name ? name->value : ""); |
2963 dump_metadata(NULL, ic->programs[j]->metadata, " "); | |
2962 for(k=0; k<ic->programs[j]->nb_stream_indexes; k++) { | 2964 for(k=0; k<ic->programs[j]->nb_stream_indexes; k++) { |
2963 dump_stream_format(ic, ic->programs[j]->stream_index[k], index, is_output); | 2965 dump_stream_format(ic, ic->programs[j]->stream_index[k], index, is_output); |
2964 printed[ic->programs[j]->stream_index[k]] = 1; | 2966 printed[ic->programs[j]->stream_index[k]] = 1; |
2965 } | 2967 } |
2966 total += ic->programs[j]->nb_stream_indexes; | 2968 total += ic->programs[j]->nb_stream_indexes; |