vp9_cx_iface.c: spatial_svc resolve missing initializer warning
Change-Id: I3f56a4d64828a74c370a5b3247a5f00e554a922c
This commit is contained in:
Родитель
812506b80c
Коммит
75290d9bc3
|
@ -978,8 +978,9 @@ static vpx_codec_err_t encoder_encode(vpx_codec_alg_priv_t *ctx,
|
||||||
cx_data_sz -= size;
|
cx_data_sz -= size;
|
||||||
#if CONFIG_SPATIAL_SVC
|
#if CONFIG_SPATIAL_SVC
|
||||||
if (is_spatial_svc(cpi)) {
|
if (is_spatial_svc(cpi)) {
|
||||||
vpx_codec_cx_pkt_t pkt = {0};
|
vpx_codec_cx_pkt_t pkt;
|
||||||
int i;
|
int i;
|
||||||
|
vp9_zero(pkt);
|
||||||
pkt.kind = VPX_CODEC_SPATIAL_SVC_LAYER_SIZES;
|
pkt.kind = VPX_CODEC_SPATIAL_SVC_LAYER_SIZES;
|
||||||
for (i = 0; i < cpi->svc.number_spatial_layers; ++i) {
|
for (i = 0; i < cpi->svc.number_spatial_layers; ++i) {
|
||||||
pkt.data.layer_sizes[i] = cpi->svc.layer_context[i].layer_size;
|
pkt.data.layer_sizes[i] = cpi->svc.layer_context[i].layer_size;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче