diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-07 20:47:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-10 18:10:08 +0200 |
commit | eb552ecd543ad656c40849c6b2bcaf5fd667c9b9 (patch) | |
tree | 1b503d116259bf3fa2b8d90011aeb915fe8816aa /libavcodec | |
parent | 6d9c4bd69e81b614cf1e1a809679a7ab840b2b3d (diff) | |
download | ffmpeg-eb552ecd543ad656c40849c6b2bcaf5fd667c9b9.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vvc/refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vvc/refs.c b/libavcodec/vvc/refs.c index 26a5b0b34c..c1fc6132c2 100644 --- a/libavcodec/vvc/refs.c +++ b/libavcodec/vvc/refs.c @@ -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) { - 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++) { VVCFrame *ref = &fc->DPB[i]; |