ffmpeg # time_base转换函数av_rescale

2019-03-28  本文已影响0人  FlyingPenguin
    AVRational src_time_base = (AVRational){1, 25};

    AVRational dst_time_base = (AVRational){1, 90000};

    int64_t pts = 2;

    int64_t new_pts = av_rescale_q(pts, src_time_base , dst_time_base);
image.png
上一篇 下一篇

猜你喜欢

热点阅读