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

Showing the changes to libavformat/dump.c (1 of 1 file). Show all

Unified · Split

libavformat/dump.c+4−5
@@ -564,17 +564,16 @@ static void dump_stream_format(const AVFormatContext *ic, int i, · 563 unmodified lines
564564 int fps = st->avg_frame_rate.den && st->avg_frame_rate.num;
565565 int tbr = st->r_frame_rate.den && st->r_frame_rate.num;
566566 int tbn = st->time_base.den && st->time_base.num;
567− int tbc = 0;
568567
569− if (fps || tbr || tbn || tbc)
568+ if (fps || tbr || tbn)
570569 av_log(NULL, AV_LOG_INFO, "%s", separator);
571570
572571 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");
574573 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");
576575 if (tbn)
577− print_fps(1 / av_q2d(st->time_base), tbc ? "tbn, " : "tbn");
576+ print_fps(1 / av_q2d(st->time_base), "tbn");
578577 }
579578
580579 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