ref: 17c6f62628aebbda1b29df9750a1311ca0ca0e5f
parent: 03a54576711c907648647fc2ef120aee0e2be0f6
author: Johann <johannkoenig@google.com>
date: Thu Dec 20 19:03:15 EST 2018
svc examples: resolve missing declarations BUG=webm:1584 Change-Id: Icb7ba5bb5a6d460c4d0419b76ee54af461ca4a52
--- a/examples/svc_encodeframe.c
+++ b/examples/svc_encodeframe.c
@@ -280,8 +280,8 @@
return VPX_CODEC_OK;
}
-vpx_codec_err_t assign_layer_bitrates(const SvcContext *svc_ctx,
- vpx_codec_enc_cfg_t *const enc_cfg) {
+static vpx_codec_err_t assign_layer_bitrates(
+ const SvcContext *svc_ctx, vpx_codec_enc_cfg_t *const enc_cfg) {
int i;
const SvcInternal_t *const si = get_const_svc_internal(svc_ctx);
int sl, tl, spatial_layer_target;
--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -539,8 +539,9 @@
tot_num_frames);
}
-vpx_codec_err_t parse_superframe_index(const uint8_t *data, size_t data_sz,
- uint64_t sizes[8], int *count) {
+static vpx_codec_err_t parse_superframe_index(const uint8_t *data,
+ size_t data_sz, uint64_t sizes[8],
+ int *count) {
// A chunk ending with a byte matching 0xc0 is an invalid chunk unless
// it is a super frame index. If the last byte of real video compression
// data is 0xc0 the encoder must add a 0 byte. If we have the marker but