Skip to content

Commit

Permalink
Merge pull request #144 from Jamaika1/patch-10
Browse files Browse the repository at this point in the history
Fix added integer s16
  • Loading branch information
mpeg5 authored Sep 23, 2024
2 parents 56fc939 + 1e75b0f commit 7d69e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_base/xeve_tq.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ int xeve_rdoq_run_length_cc(u8 qp, double d_lambda, u8 is_intra, s16 *src_coef,
int ctx_level = ctx_run;

level = get_coded_level_rl(&d64_uncoded_cost, &d64_coded_cost, tmp_level_double[blk_pos], XEVE_ABS(tmp_coef[blk_pos]), run, ctx_run, ctx_level, q_bits, err_scale, lambda, core);
tmp_dst_coef[blk_pos] = tmp_coef[blk_pos] < 0 ? -(s32)(level) : level;
tmp_dst_coef[blk_pos] = tmp_coef[blk_pos] < 0 ? (s16)(-(level)) : (s16)level;
d64_base_cost -= d64_uncoded_cost;
d64_base_cost += d64_coded_cost;

Expand Down

0 comments on commit 7d69e50

Please sign in to comment.