]> git.sesse.net Git - nageru/blobdiff - nageru/mixer.cpp
Rename MAX_FPS to TYPICAL_FPS.
[nageru] / nageru / mixer.cpp
index 9d3b12cfd90d4bbad29f1d1bae3f54b2446a5fb6..9978906a26b6f7d85a540a6ce612371a218248db 100644 (file)
@@ -981,7 +981,7 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode,
        // (Could be nonintegral, but resampling will save us then.)
        const int silence_samples = OUTPUT_FREQUENCY * video_format.frame_rate_den / video_format.frame_rate_nom;
 
-       if (dropped_frames > MAX_FPS * 2) {
+       if (dropped_frames > TYPICAL_FPS * 2) {
                fprintf(stderr, "%s lost more than two seconds (or time code jumping around; from 0x%04x to 0x%04x), resetting resampler\n",
                        description_for_card(card_index).c_str(), card->last_timecode, timecode);
                audio_mixer->reset_resampler(device);