Updated nl_NL translation from Rob van Nieuwkerk.
[dcpomatic.git] / src / lib / ffmpeg.cc
index de08e9df9394a5c6bea3b34b2eca4eebc40b9dda..6103ccd50ed98863afeb31f6087cddb251226765 100644 (file)
@@ -99,7 +99,7 @@ FFmpeg::ffmpeg_log_callback (void* ptr, int level, const char* fmt, va_list vl)
        if (log) {
                string str (line);
                boost::algorithm::trim (str);
-               log->log (String::compose ("FFmpeg: %1", str), Log::TYPE_GENERAL);
+               log->log (String::compose ("FFmpeg: %1", str), LogEntry::TYPE_GENERAL);
        } else {
                cerr << line;
        }
@@ -314,7 +314,8 @@ FFmpeg::pts_offset (vector<shared_ptr<FFmpegAudioStream> > audio_streams, option
 
        /* Now adjust so that the video pts starts on a frame */
        if (first_video) {
-               po += first_video.get().round_up (video_frame_rate) - first_video.get();
+               ContentTime const fvc = first_video.get() + po;
+               po += fvc.round_up (video_frame_rate) - fvc;
        }
 
        return po;