Commit 19944291 authored by Ralph Giles's avatar Ralph Giles Committed by Ralph Giles

Don't export kMinCompressedSize.

kMinCompressedSize was defined as a global constant, so it
was exported by default and possibly causing duplicate
symbol issues for applications. In particular, libvpx also
exports this symbol.

Instead, move the definition into the only function which
references is. As a local variable it is hidden from the
linker and not part of the global symbol table.

Change-Id: If8b3bc4c487197237adb04749cd3dd4792e39893
parent 2d422fb1
...@@ -1022,13 +1022,13 @@ static aom_codec_frame_flags_t get_frame_pkt_flags(const AV1_COMP *cpi, ...@@ -1022,13 +1022,13 @@ static aom_codec_frame_flags_t get_frame_pkt_flags(const AV1_COMP *cpi,
return flags; return flags;
} }
const size_t kMinCompressedSize = 8192;
static aom_codec_err_t encoder_encode(aom_codec_alg_priv_t *ctx, static aom_codec_err_t encoder_encode(aom_codec_alg_priv_t *ctx,
const aom_image_t *img, const aom_image_t *img,
aom_codec_pts_t pts, aom_codec_pts_t pts,
unsigned long duration, unsigned long duration,
aom_enc_frame_flags_t enc_flags, aom_enc_frame_flags_t enc_flags,
unsigned long deadline) { unsigned long deadline) {
const size_t kMinCompressedSize = 8192;
volatile aom_codec_err_t res = AOM_CODEC_OK; volatile aom_codec_err_t res = AOM_CODEC_OK;
volatile aom_enc_frame_flags_t flags = enc_flags; volatile aom_enc_frame_flags_t flags = enc_flags;
AV1_COMP *const cpi = ctx->cpi; AV1_COMP *const cpi = ctx->cpi;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment