Originally committed as revision 17684 to svn://svn.ffmpeg.org/ffmpeg/trunk
Aurelien Jacobs authored on 2009/03/01 23:55:21... | ... |
@@ -1894,22 +1894,9 @@ static void stream_component_close(VideoState *is, int stream_index) |
1894 | 1894 |
|
1895 | 1895 |
static void dump_stream_info(const AVFormatContext *s) |
1896 | 1896 |
{ |
1897 |
- if (s->track != 0) |
|
1898 |
- fprintf(stderr, "Track: %d\n", s->track); |
|
1899 |
- if (s->title[0] != '\0') |
|
1900 |
- fprintf(stderr, "Title: %s\n", s->title); |
|
1901 |
- if (s->author[0] != '\0') |
|
1902 |
- fprintf(stderr, "Author: %s\n", s->author); |
|
1903 |
- if (s->copyright[0] != '\0') |
|
1904 |
- fprintf(stderr, "Copyright: %s\n", s->copyright); |
|
1905 |
- if (s->comment[0] != '\0') |
|
1906 |
- fprintf(stderr, "Comment: %s\n", s->comment); |
|
1907 |
- if (s->album[0] != '\0') |
|
1908 |
- fprintf(stderr, "Album: %s\n", s->album); |
|
1909 |
- if (s->year != 0) |
|
1910 |
- fprintf(stderr, "Year: %d\n", s->year); |
|
1911 |
- if (s->genre[0] != '\0') |
|
1912 |
- fprintf(stderr, "Genre: %s\n", s->genre); |
|
1897 |
+ AVMetadataTag *tag = NULL; |
|
1898 |
+ while ((tag=av_metadata_get(s->metadata,"",tag,AV_METADATA_IGNORE_SUFFIX))) |
|
1899 |
+ fprintf(stderr, "%s: %s\n", tag->key, tag->value); |
|
1913 | 1900 |
} |
1914 | 1901 |
|
1915 | 1902 |
/* since we have only one decoding thread, we can use a global |