diff options
author | Jerome Jiang <jianj@google.com> | 2022-05-03 10:44:49 -0400 |
---|---|---|
committer | Jerome Jiang <jianj@google.com> | 2022-05-03 10:46:46 -0400 |
commit | 8ac72859e16934df6e598283997d141e9493fc05 (patch) | |
tree | cb38d0aac3d7762637b26909dbfe360addea7d74 /examples | |
parent | 872732b2c90eda09f6db1a21b5eee6dc36e813f3 (diff) | |
download | libvpx-8ac72859e16934df6e598283997d141e9493fc05.tar.gz |
vp9 svc sample: set fps from y4m file
Change-Id: I082c0409910da4cda5bf852b20ffa11ba5c2ebd6
Diffstat (limited to 'examples')
-rw-r--r-- | examples/vp9_spatial_svc_encoder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c index c45edb9ae..e85dbf8e7 100644 --- a/examples/vp9_spatial_svc_encoder.c +++ b/examples/vp9_spatial_svc_encoder.c @@ -361,6 +361,8 @@ static void parse_command_line(int argc, const char **argv_, if (app_input->input_ctx.file_type == FILE_TYPE_Y4M) { enc_cfg->g_w = app_input->input_ctx.width; enc_cfg->g_h = app_input->input_ctx.height; + enc_cfg->g_timebase.den = app_input->input_ctx.framerate.numerator; + enc_cfg->g_timebase.num = app_input->input_ctx.framerate.denominator; } if (enc_cfg->g_w < 16 || enc_cfg->g_w % 2 || enc_cfg->g_h < 16 || |