Commit af75a855 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3f4edf01'

* commit '3f4edf01':
  dump_stream: print the timebase as is, do not reduce it

See: 75511c29Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a9f79728 3f4edf01
......@@ -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
......
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