diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-26 23:01:18 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-26 23:03:21 +0400 |
commit | af75a8559969a0646dc4187e509245f3b5778771 (patch) | |
tree | 60d6c26b8e1bc0930d2c723e9e8bbb8fd2992018 /libavformat/dump.c | |
parent | a9f7972844b70c8e94520f52080884bb1507171f (diff) | |
parent | 3f4edf012593c73941caa0ef9b292da00225c3df (diff) |
Merge commit '3f4edf012593c73941caa0ef9b292da00225c3df'
* commit '3f4edf012593c73941caa0ef9b292da00225c3df':
dump_stream: print the timebase as is, do not reduce it
See: 75511c293add07db1cca58dcd8b08c33fc2f1075
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r-- | libavformat/dump.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index a4a8d46427..8beabce599 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -294,12 +294,8 @@ static void dump_stream_format(AVFormatContext *ic, int i, char buf[256]; int flags = (is_output ? ic->oformat->flags : ic->iformat->flags); AVStream *st = ic->streams[i]; - int g = av_gcd(st->time_base.num, st->time_base.den); AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0); - if (!g) - g = 1; - avcodec_string(buf, sizeof(buf), st->codec, is_output); av_log(NULL, AV_LOG_INFO, " Stream #%d:%d", index, i); @@ -310,7 +306,7 @@ static void dump_stream_format(AVFormatContext *ic, int i, if (lang) av_log(NULL, AV_LOG_INFO, "(%s)", lang->value); av_log(NULL, AV_LOG_DEBUG, ", %d, %d/%d", st->codec_info_nb_frames, - st->time_base.num / g, st->time_base.den / g); + st->time_base.num, st->time_base.den); av_log(NULL, AV_LOG_INFO, ": %s", buf); if (st->sample_aspect_ratio.num && // default |