X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fffmpeg_capture.cpp;h=504eff24f59d5bc7bfa5ceda9345f92ffce8785f;hb=ba3ea588faa8e7908bce832820c08e43a09863fe;hp=a9ad73d8d7ee0948744111bfaffc451159c25e9f;hpb=f25cd0c98896013248b79db6ea6f19aaaf0c03ad;p=nageru diff --git a/nageru/ffmpeg_capture.cpp b/nageru/ffmpeg_capture.cpp index a9ad73d..504eff2 100644 --- a/nageru/ffmpeg_capture.cpp +++ b/nageru/ffmpeg_capture.cpp @@ -715,7 +715,7 @@ bool FFmpegCapture::play_video(const string &pathname) 1e3 * duration(now - next_frame_start).count()); pts_origin = frame->pts; start = next_frame_start = now; - timecode += MAX_FPS * 2 + 1; + timecode += TYPICAL_FPS * 2 + 1; } } bool finished_wakeup; @@ -733,7 +733,7 @@ bool FFmpegCapture::play_video(const string &pathname) // Make sure to get the audio resampler reset. (This is a hack; // ideally, the frame callback should just accept a way to signal // audio discontinuity.) - timecode += MAX_FPS * 2 + 1; + timecode += TYPICAL_FPS * 2 + 1; } last_neutral_color = get_neutral_color(frame->metadata); if (frame_callback != nullptr) {