summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2014-10-11 11:24:52 +0200
committerJames Zern <jzern@google.com>2014-10-11 11:24:52 +0200
commite4caf2250fd5ed64af14bc6f48012827f3585bf6 (patch)
tree703bdfc81fd97b3e089edc9e086043d40543fed5 /examples
parenta0ce226e3050f9b27360f69ee676e6f70fa36f80 (diff)
downloadlibvpx-e4caf2250fd5ed64af14bc6f48012827f3585bf6.tar.gz
vp9_spatial_svc_encoder: fix -bit-depth arg parsing
use arg_parse_enum_or_int like vpxenc. this also fixes a warning as arg_parse_enum is not currently declared in args.h. Change-Id: If9ce258d6adb6286eb86f529083929d5fe2b3a56
Diffstat (limited to 'examples')
-rw-r--r--examples/vp9_spatial_svc_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c
index 3e7a11db4..10d538861 100644
--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -209,7 +209,7 @@ static void parse_command_line(int argc, const char **argv_,
max_bitrate = arg_parse_uint(&arg);
#if CONFIG_VP9_HIGHBITDEPTH
} else if (arg_match(&arg, &bitdepth_arg, argi)) {
- enc_cfg->g_bit_depth = arg_parse_enum(&arg);
+ enc_cfg->g_bit_depth = arg_parse_enum_or_int(&arg);
switch (enc_cfg->g_bit_depth) {
case VPX_BITS_8:
enc_cfg->g_input_bit_depth = 8;