mac-videotoolbox: Fix incorrect keyframe interval calculation
This commit is contained in:
parent
f6b6873aaa
commit
0cc7ea7a2a
1 changed files with 3 additions and 2 deletions
|
|
@ -626,8 +626,9 @@ static bool create_encoder(struct vt_encoder *enc)
|
|||
kVTCompressionPropertyKey_AllowFrameReordering,
|
||||
kVTCompressionPropertyKey_ProfileLevel};
|
||||
|
||||
float key_frame_interval =
|
||||
enc->keyint * ((float)enc->fps_num / enc->fps_den);
|
||||
SInt32 key_frame_interval =
|
||||
(SInt32)(enc->keyint *
|
||||
((float)enc->fps_num / enc->fps_den));
|
||||
float expected_framerate = (float)enc->fps_num / enc->fps_den;
|
||||
CFNumberRef MaxKeyFrameInterval =
|
||||
CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue