mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
ffmpeg: remove unused frame counter
This commit is contained in:
parent
d9cc551f5a
commit
d3d7a90495
@ -481,7 +481,6 @@ static int
|
||||
ffmpeg_stream(notcurses* nc, ncvisual* ncv, float timescale,
|
||||
ncstreamcb streamer, const struct ncvisual_options* vopts,
|
||||
void* curry){
|
||||
int frame = 1;
|
||||
struct timespec begin; // time we started
|
||||
clock_gettime(CLOCK_MONOTONIC, &begin);
|
||||
uint64_t nsbegin = timespec_to_ns(&begin);
|
||||
@ -520,7 +519,6 @@ ffmpeg_stream(notcurses* nc, ncvisual* ncv, float timescale,
|
||||
if(activevopts.n != newn){
|
||||
activevopts.n = newn;
|
||||
}
|
||||
++frame;
|
||||
uint64_t duration = ncv->details->frame->pkt_duration * tbase * NANOSECS_IN_SEC;
|
||||
double schedns = nsbegin;
|
||||
sum_duration += (duration * timescale);
|
||||
|
Loading…
x
Reference in New Issue
Block a user