| Index: source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| diff --git a/source/libvpx/examples/vpx_temporal_svc_encoder.c b/source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| index d5cd46c681b1665ebb382a5cc0cf42806efdb9a1..ab560932cbcc2e91d84c8fe8d6b62e217d5f01cd 100644
|
| --- a/source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| +++ b/source/libvpx/examples/vpx_temporal_svc_encoder.c
|
| @@ -481,7 +481,11 @@ int main(int argc, char **argv) {
|
| int layering_mode = 0;
|
| int layer_flags[VPX_TS_MAX_PERIODICITY] = {0};
|
| int flag_periodicity = 1;
|
| +#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION)
|
| vpx_svc_layer_id_t layer_id = {0, 0};
|
| +#else
|
| + vpx_svc_layer_id_t layer_id = {0};
|
| +#endif
|
| const VpxInterface *encoder = NULL;
|
| FILE *infile = NULL;
|
| struct RateControlMetrics rc;
|
| @@ -701,8 +705,10 @@ int main(int argc, char **argv) {
|
| struct vpx_usec_timer timer;
|
| vpx_codec_iter_t iter = NULL;
|
| const vpx_codec_cx_pkt_t *pkt;
|
| +#if VPX_ENCODER_ABI_VERSION > (4 + VPX_CODEC_ABI_VERSION)
|
| // Update the temporal layer_id. No spatial layers in this test.
|
| layer_id.spatial_layer_id = 0;
|
| +#endif
|
| layer_id.temporal_layer_id =
|
| cfg.ts_layer_id[frame_cnt % cfg.ts_periodicity];
|
| if (strncmp(encoder->name, "vp9", 3) == 0) {
|
|
|