]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/dump.c
avformat/flvdec: give live_flvdec a separate name
[ffmpeg] / libavformat / dump.c
index 2eb03b67152d14eb4b4783e786a26ff546634975..a4a8d46427bd6f97a48f2ac63406800af71226f9 100644 (file)
@@ -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);
     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);