projects
/
profile
/
ivi
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb23e2
)
validate min_q against max_q
author
John Koleszar
<jkoleszar@google.com>
Fri, 28 Jan 2011 16:56:18 +0000
(11:56 -0500)
committer
John Koleszar
<jkoleszar@google.com>
Mon, 31 Jan 2011 15:33:00 +0000
(10:33 -0500)
min_q is required to be <= max_q.
Change-Id: I28eccf96df3b52a94913762b54c4fbe0d021ce5e
vp8/vp8_cx_iface.c
patch
|
blob
|
history
diff --git
a/vp8/vp8_cx_iface.c
b/vp8/vp8_cx_iface.c
index
903c56c
..
b23bd95
100644
(file)
--- a/
vp8/vp8_cx_iface.c
+++ b/
vp8/vp8_cx_iface.c
@@
-142,8
+142,8
@@
static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx,
RANGE_CHECK(cfg, g_timebase.den, 1, 1000000000);
RANGE_CHECK(cfg, g_timebase.num, 1, cfg->g_timebase.den);
RANGE_CHECK_HI(cfg, g_profile, 3);
- RANGE_CHECK_HI(cfg, rc_min_quantizer, 63);
RANGE_CHECK_HI(cfg, rc_max_quantizer, 63);
+ RANGE_CHECK_HI(cfg, rc_min_quantizer, cfg->rc_max_quantizer);
RANGE_CHECK_HI(cfg, g_threads, 64);
#if !(CONFIG_REALTIME_ONLY)
RANGE_CHECK_HI(cfg, g_lag_in_frames, 25);