shithub: libvpx

Download patch

ref: 3c206aca04e5b9df18c6d2e3bd4a4337f5bb14fb
parent: 2f55beb355476e716fd42e8fc107f1ba2b5b7977
author: hui su <[email protected]>
date: Wed May 11 15:15:57 EDT 2016

Fix typos in control function for VP9E_SET_TARGET_LEVEL

Change-Id: Ic797c6be579c3434681a5e9dbb3900ae49c43958

--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -803,7 +803,7 @@
 static vpx_codec_err_t ctrl_set_target_level(vpx_codec_alg_priv_t *ctx,
                                              va_list args) {
   struct vp9_extracfg extra_cfg = ctx->extra_cfg;
-  extra_cfg.target_level = CAST(VP9E_SET_LEVEL_STATS, args);
+  extra_cfg.target_level = CAST(VP9E_SET_TARGET_LEVEL, args);
   return update_extra_cfg(ctx, &extra_cfg);
 }
 
--- a/vpx/vp8cx.h
+++ b/vpx/vp8cx.h
@@ -562,7 +562,7 @@
    *
    * Supported in codecs: VP9
    */
-  VP9E_SET_TARGET_LEVEL,
+  VP9E_SET_TARGET_LEVEL
 };
 
 /*!\brief vpx 1-D scaling mode
@@ -818,8 +818,8 @@
 VPX_CTRL_USE_TYPE(VP9E_SET_RENDER_SIZE, int *)
 #define VPX_CTRL_VP9E_SET_RENDER_SIZE
 
-VPX_CTRL_USE_TYPE(VP9E_SET_LEVEL_STATS,  unsigned int)
-#define VPX_CTRL_VP9E_SET_LEVEL_STATS
+VPX_CTRL_USE_TYPE(VP9E_SET_TARGET_LEVEL,  unsigned int)
+#define VPX_CTRL_VP9E_SET_TARGET_LEVEL
 
 /*!\endcond */
 /*! @} - end defgroup vp8_encoder */