Mercurial > libavformat.hg
comparison utils.c @ 5459:83b4309c8516 libavformat
Move dump_metadata() to where it is in ffmbc, looks better.
author | michael |
---|---|
date | Sun, 13 Dec 2009 23:34:46 +0000 |
parents | 761cc819fee5 |
children | 8919f5110dbf |
comparison
equal
deleted
inserted
replaced
5458:761cc819fee5 | 5459:83b4309c8516 |
---|---|
2921 av_log(NULL, AV_LOG_INFO, "%s #%d, %s, %s '%s':\n", | 2921 av_log(NULL, AV_LOG_INFO, "%s #%d, %s, %s '%s':\n", |
2922 is_output ? "Output" : "Input", | 2922 is_output ? "Output" : "Input", |
2923 index, | 2923 index, |
2924 is_output ? ic->oformat->name : ic->iformat->name, | 2924 is_output ? ic->oformat->name : ic->iformat->name, |
2925 is_output ? "to" : "from", url); | 2925 is_output ? "to" : "from", url); |
2926 dump_metadata(NULL, ic->metadata, " "); | |
2926 if (!is_output) { | 2927 if (!is_output) { |
2927 av_log(NULL, AV_LOG_INFO, " Duration: "); | 2928 av_log(NULL, AV_LOG_INFO, " Duration: "); |
2928 if (ic->duration != AV_NOPTS_VALUE) { | 2929 if (ic->duration != AV_NOPTS_VALUE) { |
2929 int hours, mins, secs, us; | 2930 int hours, mins, secs, us; |
2930 secs = ic->duration / AV_TIME_BASE; | 2931 secs = ic->duration / AV_TIME_BASE; |
2973 } | 2974 } |
2974 for(i=0;i<ic->nb_streams;i++) | 2975 for(i=0;i<ic->nb_streams;i++) |
2975 if (!printed[i]) | 2976 if (!printed[i]) |
2976 dump_stream_format(ic, i, index, is_output); | 2977 dump_stream_format(ic, i, index, is_output); |
2977 | 2978 |
2978 dump_metadata(NULL, ic->metadata, " "); | |
2979 av_free(printed); | 2979 av_free(printed); |
2980 } | 2980 } |
2981 | 2981 |
2982 #if LIBAVFORMAT_VERSION_MAJOR < 53 | 2982 #if LIBAVFORMAT_VERSION_MAJOR < 53 |
2983 int parse_image_size(int *width_ptr, int *height_ptr, const char *str) | 2983 int parse_image_size(int *width_ptr, int *height_ptr, const char *str) |