From cf1ee80aa128e54a07b1b0521159d3054f96943f Mon Sep 17 00:00:00 2001 From: minjaesong Date: Tue, 9 Sep 2025 00:11:45 +0900 Subject: [PATCH] fixing another stupid bug --- video_encoder/encoder_tev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/video_encoder/encoder_tev.c b/video_encoder/encoder_tev.c index 7ef11d5..d28956d 100644 --- a/video_encoder/encoder_tev.c +++ b/video_encoder/encoder_tev.c @@ -1924,7 +1924,12 @@ static int get_video_metadata(tev_encoder_t *config) { } else { inputFramerate = config->fps * 1.f; } - + + // if output FPS is unspecified, use the input rate + if (config->output_fps == 0) { + config->output_fps = config->fps; + } + // Frame count will be determined during encoding config->total_frames = 0;