VideoCommon: Limit maximum denominator for MPEG4

It happened to be under the limit normally, but now that the VBI rate can be changed, that's no longer the case.
This commit is contained in:
Martino Fontana
2025-04-27 13:08:33 +02:00
parent 832570c658
commit c720211542
2 changed files with 13 additions and 4 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <ctime>
#include <limits>
#include <memory>
#include "Common/CommonTypes.h"
@ -62,6 +63,9 @@ private:
// Used for filename generation.
std::time_t m_start_time = {};
u32 m_file_index = 0;
// Some codecs (like MPEG4) have a limit to this
int64_t m_max_denominator = std::numeric_limits<s64>::max();
};
#if !defined(HAVE_FFMPEG)