vpx_codec_control: return incapable for unmatched control
authorJames Zern <jzern@google.com>
Sat, 10 Sep 2016 00:37:13 +0000 (17:37 -0700)
committerJames Zern <jzern@google.com>
Sat, 10 Sep 2016 00:40:10 +0000 (17:40 -0700)
VPX_CODEC_INCAPABLE rather than the more generic VPX_CODEC_ERROR

Change-Id: Id1ed7fb23a2910192713c6b2389c0b7320201f52

vpx/src/vpx_codec.c

index f222b9e..10331aa 100644 (file)
@@ -95,7 +95,7 @@ vpx_codec_err_t vpx_codec_control_(vpx_codec_ctx_t *ctx, int ctrl_id, ...) {
   else {
     vpx_codec_ctrl_fn_map_t *entry;
 
-    res = VPX_CODEC_ERROR;
+    res = VPX_CODEC_INCAPABLE;
 
     for (entry = ctx->iface->ctrl_maps; entry && entry->fn; entry++) {
       if (!entry->ctrl_id || entry->ctrl_id == ctrl_id) {