]> granicus.if.org Git - libvpx/commitdiff
Adds subsecond frame rates to webm
authorJohnny Klonaris <google@jawknee.com>
Mon, 1 Jun 2015 06:29:16 +0000 (23:29 -0700)
committerJohann <johannkoenig@google.com>
Mon, 1 Jun 2015 17:13:58 +0000 (10:13 -0700)
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

vp8/vp8_cx_iface.c

index 3e3dbb0367205b8ee2eb6e6147b62c610dc3a500..8697377892ea195d0eb3c4c11c76e4123378facb 100644 (file)
@@ -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);