History

avformat/dump: Remove remnants of codec timebase

Fixes Coverity issue #1477414.

Andreas Rheinhardt committed 5 years ago

Commit 4796ec51 parent 036bb531 file · +4 −5Browse files

Unified · Split

libavformat/dump.c+4−5
@@ -564,17 +564,16 @@ static void dump_stream_format(const AVFormatContext *ic, int i, · 563 unmodified lines
564 int fps = st->avg_frame_rate.den && st->avg_frame_rate.num;564 int fps = st->avg_frame_rate.den && st->avg_frame_rate.num;
565 int tbr = st->r_frame_rate.den && st->r_frame_rate.num;565 int tbr = st->r_frame_rate.den && st->r_frame_rate.num;
566 int tbn = st->time_base.den && st->time_base.num;566 int tbn = st->time_base.den && st->time_base.num;
567 int tbc = 0;
568 567
569 if (fps || tbr || tbn || tbc)568 if (fps || tbr || tbn)
570 av_log(NULL, AV_LOG_INFO, "%s", separator);569 av_log(NULL, AV_LOG_INFO, "%s", separator);
571 570
572 if (fps)571 if (fps)
573 print_fps(av_q2d(st->avg_frame_rate), tbr || tbn || tbc ? "fps, " : "fps");572 print_fps(av_q2d(st->avg_frame_rate), tbr || tbn ? "fps, " : "fps");
574 if (tbr)573 if (tbr)
575 print_fps(av_q2d(st->r_frame_rate), tbn || tbc ? "tbr, " : "tbr");574 print_fps(av_q2d(st->r_frame_rate), tbn ? "tbr, " : "tbr");
576 if (tbn)575 if (tbn)
577 print_fps(1 / av_q2d(st->time_base), tbc ? "tbn, " : "tbn");576 print_fps(1 / av_q2d(st->time_base), "tbn");
578 }577 }
579 578
580 if (st->disposition & AV_DISPOSITION_DEFAULT)579 if (st->disposition & AV_DISPOSITION_DEFAULT)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t