Advertisement
Guest User

Untitled

a guest
Mar 17th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int64_t timeBase = (int64_t(pVideoCodecCtx->time_base.den))/int64_t(pVideoCodecCtx->time_base.num);
  2. int64_t seekTarget = int64_t(SEEK_TARGET*1000) * timeBase;
  3.  
  4. if (av_seek_frame(pFormatCtx, 0, seekTarget, AVSEEK_FLAG_ANY) >= 0)
  5. {
  6. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement