Commit 55df8baa authored by michael's avatar michael

dump metadata for AVStreams & AVPrograms too.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20846 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a4dbb165
...@@ -2904,6 +2904,7 @@ static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_out ...@@ -2904,6 +2904,7 @@ static void dump_stream_format(AVFormatContext *ic, int i, int index, int is_out
print_fps(1/av_q2d(st->codec->time_base), "tbc"); print_fps(1/av_q2d(st->codec->time_base), "tbc");
} }
av_log(NULL, AV_LOG_INFO, "\n"); av_log(NULL, AV_LOG_INFO, "\n");
dump_metadata(NULL, st->metadata, " ");
} }
void dump_format(AVFormatContext *ic, void dump_format(AVFormatContext *ic,
...@@ -2959,6 +2960,7 @@ void dump_format(AVFormatContext *ic, ...@@ -2959,6 +2960,7 @@ void dump_format(AVFormatContext *ic,
"name", NULL, 0); "name", NULL, 0);
av_log(NULL, AV_LOG_INFO, " Program %d %s\n", ic->programs[j]->id, av_log(NULL, AV_LOG_INFO, " Program %d %s\n", ic->programs[j]->id,
name ? name->value : ""); name ? name->value : "");
dump_metadata(NULL, ic->programs[j]->metadata, " ");
for(k=0; k<ic->programs[j]->nb_stream_indexes; k++) { for(k=0; k<ic->programs[j]->nb_stream_indexes; k++) {
dump_stream_format(ic, ic->programs[j]->stream_index[k], index, is_output); dump_stream_format(ic, ic->programs[j]->stream_index[k], index, is_output);
printed[ic->programs[j]->stream_index[k]] = 1; printed[ic->programs[j]->stream_index[k]] = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment