diff options
author | Johnny Klonaris <google@jawknee.com> | 2015-05-31 23:29:16 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2015-06-01 10:13:58 -0700 |
commit | d02aa04422b56b22cf8a9605ec94de6db66c5835 (patch) | |
tree | fca76b6171d22dc8e3edb586e000e51c95d32e36 /vp8/vp8_cx_iface.c | |
parent | 71e88f903d04693b18bf0eff3917544525452649 (diff) | |
download | libvpx-d02aa04422b56b22cf8a9605ec94de6db66c5835.tar libvpx-d02aa04422b56b22cf8a9605ec94de6db66c5835.tar.gz libvpx-d02aa04422b56b22cf8a9605ec94de6db66c5835.tar.bz2 libvpx-d02aa04422b56b22cf8a9605ec94de6db66c5835.zip |
Adds subsecond frame rates to webm
Numerator was being range checked against the
denominator - preventing any frame rate slower
than 1 fps.
I've tested this on a Mac using using ffmpeg and
results are comparable to mp4 and ogg files generated
at the same time.
Not yet tested on Windows.
Johnny Klonaris
google@jawknee.com
Change-Id: Idb358dbc2e7dc000037880ede4a1b0df248a42c8
Diffstat (limited to 'vp8/vp8_cx_iface.c')
-rw-r--r-- | vp8/vp8_cx_iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/vp8_cx_iface.c b/vp8/vp8_cx_iface.c index 3e3dbb036..869737789 100644 --- a/vp8/vp8_cx_iface.c +++ b/vp8/vp8_cx_iface.c @@ -135,7 +135,7 @@ static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx, RANGE_CHECK(cfg, g_w, 1, 16383); /* 14 bits available */ RANGE_CHECK(cfg, g_h, 1, 16383); /* 14 bits available */ RANGE_CHECK(cfg, g_timebase.den, 1, 1000000000); - RANGE_CHECK(cfg, g_timebase.num, 1, cfg->g_timebase.den); + RANGE_CHECK(cfg, g_timebase.num, 1, 1000000000); RANGE_CHECK_HI(cfg, g_profile, 3); RANGE_CHECK_HI(cfg, rc_max_quantizer, 63); RANGE_CHECK_HI(cfg, rc_min_quantizer, cfg->rc_max_quantizer); |