shithub: libvpx

Download patch

ref: f375eefde10a7b38c70556b6d4e04b4d3c2b2263
parent: 189585564142fbf4f37843a21341a6a08914fb61
parent: 17c6f62628aebbda1b29df9750a1311ca0ca0e5f
author: Johann Koenig <johannkoenig@google.com>
date: Thu Dec 20 20:14:17 EST 2018

Merge "svc examples: resolve missing declarations"

--- 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