void
FFmpeg::setup_general ()
{
- av_register_all ();
-
/* This might not work too well in some cases of multiple FFmpeg decoders,
but it's probably good enough.
*/
/* Now adjust so that the video pts starts on a frame */
if (first_video) {
ContentTime const fvc = first_video.get() + po;
- po += fvc.round_up (video_frame_rate) - fvc;
+ po += fvc.ceil (video_frame_rate) - fvc;
}
return po;