Bug 1920740 - Correct SetFrameRate setting r=media-playback-reviewers,aosmond

Differential Revision: https://phabricator.services.mozilla.com/D222556
This commit is contained in:
Chun-Min Chang 2024-09-24 23:04:44 +00:00
parent beccd15d80
commit bab059d6fa

View File

@ -110,7 +110,7 @@ static bool SetBitrateAndMode(VTCompressionSessionRef& aSession,
static bool SetFrameRate(VTCompressionSessionRef& aSession, int64_t aFPS) {
AutoCFRelease<CFNumberRef> framerate(
CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt64Type, &framerate));
CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt64Type, &aFPS));
return VTSessionSetProperty(aSession,
kVTCompressionPropertyKey_ExpectedFrameRate,
framerate) == noErr;