shithub: libvpx

Download patch

ref: 6eca31be5f9d0ad7bf272e15437c6c3b94a5c7d2
parent: bcbc4761fa72117be4ba32889ea79fca94c21956
author: James Zern <jzern@google.com>
date: Fri Sep 9 13:37:13 EDT 2016

vpx_codec_control: return incapable for unmatched control

VPX_CODEC_INCAPABLE rather than the more generic VPX_CODEC_ERROR

Change-Id: Id1ed7fb23a2910192713c6b2389c0b7320201f52

--- a/vpx/src/vpx_codec.c
+++ b/vpx/src/vpx_codec.c
@@ -95,7 +95,7 @@
   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) {