Purge rint() and use llrint and friends.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index a17419dc7b143f8f37432d24ea5043a0b7a70b02..eab85c04ed48c626516b31a03dd4cd91af76327b 100644 (file)
@@ -418,7 +418,7 @@ FFmpegDecoder::decode_video_packet ()
                        double const pts = i->second * av_q2d (_format_context->streams[_video_stream]->time_base) + _pts_offset.seconds ();
                        video (
                                shared_ptr<ImageProxy> (new RawImageProxy (image)),
-                               rint (pts * _ffmpeg_content->video_frame_rate ())
+                               llrint (pts * _ffmpeg_content->video_frame_rate ())
                                );
                } else {
                        LOG_WARNING_NC ("Dropping frame without PTS");