Skip to content

Commit 38a78e7

Browse files
committed
initial commit
1 parent 269556d commit 38a78e7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ modules.order
5050
Module.symvers
5151
Mkfile.old
5252
dkms.conf
53+
.vscode/
54+
build/

src/oapv_rc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int oapve_rc_get_tile_cost(oapve_ctx_t* ctx, int tile_idx)
3535
int step = 8;
3636
ALIGNED_16(pel temp[64]);
3737
int sum = 0;
38-
38+
ctx->ti[tile_idx].rc.number_pixel = 0;
3939
for (int c = Y_C; c < ctx->num_comp; c++)
4040
{
4141
int step_w = c ? 8 << ctx->ch_sft_w : 8;

src/oapv_vlc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,8 @@ int oapvd_vlc_frame_size(oapv_bs_t* bs)
815815
static int dec_vlc_quantization_matrix(oapv_bs_t* bs, oapv_fh_t* fh)
816816
{
817817
u32 t0;
818-
int num_copm = oapv_get_chroma_sft_w(fh->fi.chroma_format_idc);
819-
for (int cidx = 0; cidx < num_copm; cidx++)
818+
int num_comp = oapv_get_num_comp(fh->fi.chroma_format_idc);
819+
for (int cidx = 0; cidx < num_comp; cidx++)
820820
{
821821
for (int y = 0; y < OAPV_BLOCK_H; y++)
822822
{

0 commit comments

Comments
 (0)