summaryrefslogtreecommitdiffstats
path: root/libvpx/vpx/src/vpx_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvpx/vpx/src/vpx_encoder.c')
-rw-r--r--libvpx/vpx/src/vpx_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvpx/vpx/src/vpx_encoder.c b/libvpx/vpx/src/vpx_encoder.c
index 3cec895..e0a29cb 100644
--- a/libvpx/vpx/src/vpx_encoder.c
+++ b/libvpx/vpx/src/vpx_encoder.c
@@ -215,11 +215,11 @@ vpx_codec_err_t vpx_codec_encode(vpx_codec_ctx_t *ctx,
else if (!(ctx->iface->caps & VPX_CODEC_CAP_ENCODER))
res = VPX_CODEC_INCAPABLE;
else {
+ unsigned int num_enc = ctx->priv->enc.total_encoders;
+
/* Execute in a normalized floating point environment, if the platform
* requires it.
*/
- unsigned int num_enc = ctx->priv->enc.total_encoders;
-
FLOATING_POINT_INIT();
if (num_enc == 1)