]> git.sesse.net Git - nageru/blobdiff - nageru/ffmpeg_capture.cpp
Rename MAX_FPS to TYPICAL_FPS.
[nageru] / nageru / ffmpeg_capture.cpp
index a9ad73d8d7ee0948744111bfaffc451159c25e9f..504eff24f59d5bc7bfa5ceda9345f92ffce8785f 100644 (file)
@@ -715,7 +715,7 @@ bool FFmpegCapture::play_video(const string &pathname)
                                                1e3 * duration<double>(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) {