[vlc-commits] aom: encoder: configure timebase
Tristan Matthews
git at videolan.org
Sun Sep 23 17:48:06 CEST 2018
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sun Sep 23 11:41:47 2018 -0400| [77c673920be0a70060299938a7b3fbbe68ddb6e7] | committer: Tristan Matthews
aom: encoder: configure timebase
Fixes #21207
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=77c673920be0a70060299938a7b3fbbe68ddb6e7
---
modules/codec/aom.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index 63fb356e19..770a9be564 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -408,6 +408,8 @@ static int OpenEncoder(vlc_object_t *p_this)
struct aom_codec_enc_cfg enccfg = {};
aom_codec_enc_config_default(iface, &enccfg, 0);
+ enccfg.g_timebase.num = p_enc->fmt_in.video.i_frame_rate_base;
+ enccfg.g_timebase.den = p_enc->fmt_in.video.i_frame_rate;
enccfg.g_threads = __MIN(vlc_GetCPUCount(), 4);
enccfg.g_w = p_enc->fmt_in.video.i_visible_width;
enccfg.g_h = p_enc->fmt_in.video.i_visible_height;
More information about the vlc-commits
mailing list