Commit 75511c29 authored by Michael Niedermayer's avatar Michael Niedermayer

dump_stream_format: fix division by 0

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ac293b66
...@@ -297,6 +297,9 @@ static void dump_stream_format(AVFormatContext *ic, int i, ...@@ -297,6 +297,9 @@ static void dump_stream_format(AVFormatContext *ic, int i,
int g = av_gcd(st->time_base.num, st->time_base.den); int g = av_gcd(st->time_base.num, st->time_base.den);
AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0); AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0);
if (!g)
g = 1;
avcodec_string(buf, sizeof(buf), st->codec, is_output); avcodec_string(buf, sizeof(buf), st->codec, is_output);
av_log(NULL, AV_LOG_INFO, " Stream #%d:%d", index, i); av_log(NULL, AV_LOG_INFO, " Stream #%d:%d", index, i);
......
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