Fixes: left shift of 1 by 31 places cannot be represented in type 'int' Fixes: 70726/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-6149928703819776
Unified · Split
| @@ -1101,7 +1101,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id, · 1100 unmodified lines | ||
| 1101 | 1101 | sps->used_by_curr_pic_lt = 0; |
| 1102 | 1102 | for (i = 0; i < sps->num_long_term_ref_pics_sps; i++) { |
| 1103 | 1103 | sps->lt_ref_pic_poc_lsb_sps[i] = get_bits(gb, sps->log2_max_poc_lsb); |
| 1104 | − sps->used_by_curr_pic_lt |= get_bits1(gb) * (1 << i); | |
| 1104 | + sps->used_by_curr_pic_lt |= get_bits1(gb) << i; | |
| 1105 | 1105 | } |
| 1106 | 1106 | } |
| 1107 | 1107 | |