avcodec/hevc_ps: Fix UB 1 << 31
Reviewed-by: Tomas Härdin <git@haerdin.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
00d029d5c0
commit
2c38ca3d37
@ -200,7 +200,7 @@ int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx,
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < FF_ARRAY_ELEMS(used); i++)
|
||||
rps->used |= used[i] * (1 << i);
|
||||
rps->used |= (uint32_t)used[i] << i;
|
||||
} else {
|
||||
unsigned int nb_positive_pics;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user