[ffmpeg] treat nan/-nan tbase as 0 #2241

pull/2243/head
nick black 3 years ago
parent 28d357d252
commit 8ec6e22b7c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -491,6 +491,9 @@ int ffmpeg_stream(notcurses* nc, ncvisual* ncv, float timescale,
// all media when we loop =[. we seem to be accurate enough now with the
// tbase/ppd. see https://github.com/dankamongmen/notcurses/issues/1352.
double tbase = av_q2d(ncv->details->fmtctx->streams[ncv->details->stream_index]->time_base);
if(isnan(tbase)){
tbase = 0;
}
if(activevopts.n){
ncplane_erase(activevopts.n); // new frame could be partially transparent
}

Loading…
Cancel
Save