avcodec/vp3: Reindent after the previous commits

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-09-26 23:39:15 +02:00
parent 75c6a253a4
commit 73fa6d486d

@ -2488,34 +2488,34 @@ static av_cold int vp3_decode_init(AVCodecContext *avctx)
s->coeff_vlc = vlcs; s->coeff_vlc = vlcs;
if (!s->theora_tables) { if (!s->theora_tables) {
const uint8_t (*bias_tabs)[32][2]; const uint8_t (*bias_tabs)[32][2];
/* init VLC tables */ /* init VLC tables */
bias_tabs = CONFIG_VP4_DECODER && s->version >= 2 ? vp4_bias : vp3_bias; bias_tabs = CONFIG_VP4_DECODER && s->version >= 2 ? vp4_bias : vp3_bias;
for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) { for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) {
ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, 32, ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, 32,
&bias_tabs[i][0][1], 2, &bias_tabs[i][0][1], 2,
&bias_tabs[i][0][0], 2, 1, &bias_tabs[i][0][0], 2, 1,
0, 0, avctx); 0, 0, avctx);
if (ret < 0) if (ret < 0)
return ret; return ret;
vlcs->vlc_tabs[i] = vlcs->vlcs[i].table; vlcs->vlc_tabs[i] = vlcs->vlcs[i].table;
} }
} else { } else {
for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) { for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) {
const HuffTable *tab = &s->huffman_table[i]; const HuffTable *tab = &s->huffman_table[i];
ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, tab->nb_entries, ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, tab->nb_entries,
&tab->entries[0].len, sizeof(*tab->entries), &tab->entries[0].len, sizeof(*tab->entries),
&tab->entries[0].sym, sizeof(*tab->entries), 1, &tab->entries[0].sym, sizeof(*tab->entries), 1,
0, 0, avctx); 0, 0, avctx);
if (ret < 0) if (ret < 0)
return ret; return ret;
vlcs->vlc_tabs[i] = vlcs->vlcs[i].table; vlcs->vlc_tabs[i] = vlcs->vlcs[i].table;
}
} }
} }
}
ff_thread_once(&init_static_once, init_tables_once); ff_thread_once(&init_static_once, init_tables_once);