[sao] Use correct pixel type in sao_edge_ddistortion_generic

This commit is contained in:
Marko Viitanen 2024-08-08 14:48:48 +03:00
parent 6d1ffd48cb
commit e06d980a96

View file

@ -67,10 +67,10 @@ static int sao_edge_ddistortion_generic(const uvg_pixel *orig_data,
uint32_t a_pos = (y + a_ofs.y) * block_width + x + a_ofs.x;
uint32_t b_pos = (y + b_ofs.y) * block_width + x + b_ofs.x;
uint8_t a = rec_data[a_pos];
uint8_t b = rec_data[b_pos];
uint8_t c = rec_data[c_pos];
uint8_t orig = orig_data[c_pos];
uvg_pixel a = rec_data[a_pos];
uvg_pixel b = rec_data[b_pos];
uvg_pixel c = rec_data[c_pos];
uvg_pixel orig = orig_data[c_pos];
int32_t eo_cat = sao_calc_eo_cat(a, b, c);
int32_t offset = offsets[eo_cat];