Skip to content

Commit

Permalink
Rav1dFrameContext_frame_thread::pal_idx: Make into AlignedVec64
Browse files Browse the repository at this point in the history
  • Loading branch information
randomPoison committed Feb 22, 2024
1 parent dc557aa commit f34f8ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4390,7 +4390,7 @@ pub(crate) unsafe fn rav1d_decode_frame_init(
// TODO: Fallible allocation
f.frame_thread
.pal_idx
.resize_with(pal_idx_sz as usize * 128 * 128 / 4, Default::default);
.resize(pal_idx_sz as usize * 128 * 128 / 4, Default::default());
} else if !f.frame_thread.pal.is_empty() {
let _ = mem::take(&mut f.frame_thread.pal);
let _ = mem::take(&mut f.frame_thread.pal_idx);
Expand Down
2 changes: 1 addition & 1 deletion src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ pub struct Rav1dFrameContext_frame_thread {
// indexed using (t->by >> 1) * (f->b4_stride >> 1) + (t->bx >> 1)
pub pal: AlignedVec64<[[u16; 8]; 3]>, /* [3 plane][8 idx] */
// iterated over inside tile state
pub pal_idx: Vec<Align64<u8>>,
pub pal_idx: AlignedVec64<u8>,
pub cf: *mut DynCoef,
pub cf_sz: c_int,
// start offsets per tile
Expand Down

0 comments on commit f34f8ef

Please sign in to comment.