v4l_encoder: used encoder_info.fps instead of hardcoded 20 (#34701)

Used encoder_info.fps instead of hardcoded 20
This commit is contained in:
Dean Lee
2025-02-24 23:06:38 +08:00
committed by GitHub
parent 949fe31bad
commit 0619e9a581
+1 -1
View File
@@ -186,7 +186,7 @@ V4LEncoder::V4LEncoder(const EncoderInfo &encoder_info, int in_width, int in_hei
// TODO: more stuff here? we don't know
.timeperframe = {
.numerator = 1,
.denominator = 20
.denominator = (unsigned int)encoder_info.fps
}
}
}