summaryrefslogtreecommitdiff
path: root/vpx/src
diff options
context:
space:
mode:
authorAdrian Grange <agrange@google.com>2013-09-12 09:35:04 -0700
committerAdrian Grange <agrange@google.com>2013-09-17 15:38:30 -0700
commit88c8ff25088ef89b02b928a9844e94cd6f7d72e9 (patch)
tree8c236e658bdddd22b484d5b34127b768b5f272a0 /vpx/src
parent2b3bfaa9ce6eeefaa7ba3ee85ef69dfb99d31db2 (diff)
downloadlibvpx-88c8ff25088ef89b02b928a9844e94cd6f7d72e9.tar.gz
libvpx-88c8ff25088ef89b02b928a9844e94cd6f7d72e9.tar.bz2
libvpx-88c8ff25088ef89b02b928a9844e94cd6f7d72e9.zip
Modified resize unit test to output test vector
Modified the resize unit test so that it optionally writes the encoded bitstream to file. The macro WRITE_COMPRESSED_STREAM should be set to 1 to enable output of the test bitstream; it is set to 0 by default. Change-Id: I7d436b1942f935da97db6d84574a98d379f57fb1
Diffstat (limited to 'vpx/src')
-rw-r--r--vpx/src/vpx_encoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpx/src/vpx_encoder.c b/vpx/src/vpx_encoder.c
index 3cec895c9..e0a29cb94 100644
--- a/vpx/src/vpx_encoder.c
+++ b/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)