mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avcodec/vvc/refs: Use unsigned mask
Not a bugfix, but might fix CID1604361 Overflowed constant Sponsored-by: Sovereign Tech Fund Reviewed-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
3bca7f86ff
commit
636eaafad7
@ -310,7 +310,7 @@ void ff_vvc_bump_frame(VVCContext *s, VVCFrameContext *fc)
|
|||||||
|
|
||||||
static VVCFrame *find_ref_idx(VVCContext *s, VVCFrameContext *fc, int poc, uint8_t use_msb)
|
static VVCFrame *find_ref_idx(VVCContext *s, VVCFrameContext *fc, int poc, uint8_t use_msb)
|
||||||
{
|
{
|
||||||
const int mask = use_msb ? ~0 : fc->ps.sps->max_pic_order_cnt_lsb - 1;
|
const unsigned mask = use_msb ? ~0 : fc->ps.sps->max_pic_order_cnt_lsb - 1;
|
||||||
|
|
||||||
for (int i = 0; i < FF_ARRAY_ELEMS(fc->DPB); i++) {
|
for (int i = 0; i < FF_ARRAY_ELEMS(fc->DPB); i++) {
|
||||||
VVCFrame *ref = &fc->DPB[i];
|
VVCFrame *ref = &fc->DPB[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user