Last active
September 1, 2021 23:11
-
-
Save Davidj361/df582b73506708971815da4e1ed31aec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double fileDuration = ifmt_ctx->duration * av_q2d(AV_TIME_BASE_Q); | |
double pktPts = pkt.pts * av_q2d(ifmt_ctx->streams[pkt.stream_index]->time_base); | |
int64_t prog = ceil((pktPts / fileDuration) * 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment