summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-09-18 14:45:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-09-18 14:45:17 +0000
commit21189011922a9d2dbff4ebba9d5bacc9d1215f99 (patch)
treedc98b8993a48c800bbd6df469f975de790cf0c46 /libavformat
parent357a28430a11c4b547b12e07a00c1286bdb56b2a (diff)
print more time_base fps stuff if av_log level is at debug or above
print more likely correct fps not sure if this is formated optimally ... Originally committed as revision 4596 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index edac0b877d..c49547cdb5 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2598,6 +2598,7 @@ void dump_format(AVFormatContext *ic,
}
for(i=0;i<ic->nb_streams;i++) {
AVStream *st = ic->streams[i];
+ int g= ff_gcd(st->time_base.num, st->time_base.den);
avcodec_string(buf, sizeof(buf), st->codec, is_output);
av_log(NULL, AV_LOG_INFO, " Stream #%d.%d", index, i);
/* the pid is an important information, so we display it */
@@ -2612,6 +2613,10 @@ void dump_format(AVFormatContext *ic,
if (strlen(st->language) > 0) {
av_log(NULL, AV_LOG_INFO, "(%s)", st->language);
}
+ av_log(NULL, AV_LOG_DEBUG, ", %d/%d", st->time_base.num/g, st->time_base.den/g);
+ if(st->codec->codec_type == CODEC_TYPE_VIDEO){
+ av_log(NULL, AV_LOG_INFO, ", %5.2f fps", av_q2d(st->r_frame_rate));
+ }
av_log(NULL, AV_LOG_INFO, ": %s\n", buf);
}
}