fftools/ffmpeg_enc: move nb_frames{dup,drop} globals into OutputStream

This commit is contained in:
Anton Khirnov
2023-05-28 16:51:57 +02:00
parent 09af34dc91
commit ba1141d8a9
3 changed files with 11 additions and 9 deletions

View File

@@ -119,8 +119,6 @@ typedef struct BenchmarkTimeStamps {
static BenchmarkTimeStamps get_benchmark_time_stamps(void);
static int64_t getmaxrss(void);
int64_t nb_frames_dup = 0;
int64_t nb_frames_drop = 0;
unsigned nb_output_dumped = 0;
static BenchmarkTimeStamps current_time;
@@ -491,6 +489,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
int64_t pts = INT64_MIN + 1;
static int64_t last_time = -1;
static int first_report = 1;
uint64_t nb_frames_dup = 0, nb_frames_drop = 0;
int hours, mins, secs, us;
const char *hours_sign;
int ret;
@@ -536,6 +535,9 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
if (is_last_report)
av_bprintf(&buf, "L");
nb_frames_dup = ost->nb_frames_dup;
nb_frames_drop = ost->nb_frames_drop;
vid = 1;
}
/* compute min output value */