Skip to content

Commit ac61409

Browse files
dariusz-fdkozinski
authored andcommitted
refactor: Fix minor compilations warnings
1 parent f72b320 commit ac61409

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

app/oapv_app_enc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ int main(int argc, const char **argv)
565565
int frm_cnt[MAX_NUM_FRMS] = { 0 };
566566
double bitrate_tot; // total bitrate (byte)
567567
double psnr_avg[MAX_NUM_FRMS][MAX_NUM_CC] = { 0 };
568-
int is_inp_y4m, is_rec_y4m;
568+
int is_inp_y4m, is_rec_y4m = 0;
569569
y4m_params_t y4m;
570570
int is_out = 0, is_rec = 0;
571571
char *errstr = NULL;

src/oapv.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,6 @@ int oapvd_config(oapvd_t did, int cfg, void *buf, int *size)
20682068
int oapvd_info(void *au, int au_size, oapv_au_info_t *aui)
20692069
{
20702070
int ret, frm_count = 0;
2071-
int pbu_cnt = 0;
20722071
u8 *curpos;
20732072
u32 remain;
20742073

@@ -2124,7 +2123,6 @@ int oapvd_info(void *au, int au_size, oapv_au_info_t *aui)
21242123

21252124
curpos += pbu_size;
21262125
remain = (remain < pbu_size)? 0: (remain - pbu_size);
2127-
++pbu_cnt;
21282126
}
21292127
DUMP_SET(1);
21302128
return OAPV_OK;

src/oapv_vlc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ int oapvd_vlc_dc_coeff(oapvd_ctx_t *ctx, oapvd_core_t *core, oapv_bs_t *bs, int
12101210
int oapvd_vlc_ac_coeff(oapvd_ctx_t *ctx, oapvd_core_t *core, oapv_bs_t *bs, s16 *coef, int c)
12111211
{
12121212
int sign, level, prev_level, run;
1213-
int scan_pos_offset, num_coeff, i, coef_cnt = 0;
1213+
int scan_pos_offset, num_coeff, i = 0;
12141214
const u16 *scanp;
12151215

12161216
scanp = oapv_tbl_scan;
@@ -1302,8 +1302,6 @@ int oapvd_vlc_ac_coeff(oapvd_ctx_t *ctx, oapvd_core_t *core, oapv_bs_t *bs, s16
13021302
bs->leftbits -= 1;
13031303
coef[scanp[scan_pos_offset]] = sign ? -(s16)level : (s16)level;
13041304

1305-
coef_cnt++;
1306-
13071305
if(scan_pos_offset >= num_coeff - 1) {
13081306
break;
13091307
}

0 commit comments

Comments
 (0)