Fixes Coverity issue #1477414.
Unified · Split
| @@ -564,17 +564,16 @@ static void dump_stream_format(const AVFormatContext *ic, int i, · 563 unmodified lines | ||
| 564 | 564 | int fps = st->avg_frame_rate.den && st->avg_frame_rate.num; |
| 565 | 565 | int tbr = st->r_frame_rate.den && st->r_frame_rate.num; |
| 566 | 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 | 569 | av_log(NULL, AV_LOG_INFO, "%s", separator); |
| 571 | 570 | |
| 572 | 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 | 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 | 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 | 579 | if (st->disposition & AV_DISPOSITION_DEFAULT) |