]> granicus.if.org Git - libvpx/commitdiff
vp8e_encode: check validate_config return
authorJames Zern <jzern@google.com>
Tue, 25 Aug 2015 03:07:48 +0000 (20:07 -0700)
committerJames Zern <jzern@google.com>
Wed, 26 Aug 2015 01:45:05 +0000 (18:45 -0700)
Change-Id: I56fad85cae4537f9d68febf9b9264c3e1cf82ce1

vp8/vp8_cx_iface.c

index fe88cd4b1b3adb906c1fb210f8ec2107cb24eef1..960c2f4ef47329787887b31e741253231335cb2e 100644 (file)
@@ -879,7 +879,8 @@ static vpx_codec_err_t vp8e_encode(vpx_codec_alg_priv_t  *ctx,
     }
     ctx->control_frame_flags = 0;
 
-    res = set_reference_and_update(ctx, flags);
+    if (!res)
+        res = set_reference_and_update(ctx, flags);
 
     /* Handle fixed keyframe intervals */
     if (ctx->cfg.kf_mode == VPX_KF_AUTO