mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
lavc/vvc: Fix left shifts of negative values
All these variables lie in the range [-12..12] Signed-off-by: Frank Plowman <post@frankplowman.com>
This commit is contained in:
parent
67e2f8b6bf
commit
b4baa4c0b3
@ -1196,12 +1196,12 @@ static void sh_deblock_offsets(VVCSH *sh)
|
||||
const H266RawSliceHeader *r = sh->r;
|
||||
|
||||
if (!r->sh_deblocking_filter_disabled_flag) {
|
||||
sh->deblock.beta_offset[LUMA] = r->sh_luma_beta_offset_div2 << 1;
|
||||
sh->deblock.tc_offset[LUMA] = r->sh_luma_tc_offset_div2 << 1;
|
||||
sh->deblock.beta_offset[CB] = r->sh_cb_beta_offset_div2 << 1;
|
||||
sh->deblock.tc_offset[CB] = r->sh_cb_tc_offset_div2 << 1;
|
||||
sh->deblock.beta_offset[CR] = r->sh_cr_beta_offset_div2 << 1;
|
||||
sh->deblock.tc_offset[CR] = r->sh_cr_tc_offset_div2 << 1;
|
||||
sh->deblock.beta_offset[LUMA] = r->sh_luma_beta_offset_div2 * 2;
|
||||
sh->deblock.tc_offset[LUMA] = r->sh_luma_tc_offset_div2 * 2;
|
||||
sh->deblock.beta_offset[CB] = r->sh_cb_beta_offset_div2 * 2;
|
||||
sh->deblock.tc_offset[CB] = r->sh_cb_tc_offset_div2 * 2;
|
||||
sh->deblock.beta_offset[CR] = r->sh_cr_beta_offset_div2 * 2;
|
||||
sh->deblock.tc_offset[CR] = r->sh_cr_tc_offset_div2 * 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user