Fixes: signed integer overflow: 2147481600 + 13408 cannot be represented in type 'int' Fixes: 53963/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-4650467311616000
Unified · Split
| @@ -1228,7 +1228,7 @@ static int h264_export_frame_props(H264Context *h) · 1227 unmodified lines | ||
| 1228 | 1228 | |
| 1229 | 1229 | ret = ff_h2645_sei_to_frame(out, &h->sei.common, AV_CODEC_ID_H264, h->avctx, |
| 1230 | 1230 | &sps->vui, sps->bit_depth_luma, sps->bit_depth_chroma, |
| 1231 | − cur->poc + (h->poc_offset << 5)); | |
| 1231 | + cur->poc + (unsigned)(h->poc_offset << 5)); | |
| 1232 | 1232 | if (ret < 0) |
| 1233 | 1233 | return ret; |
| 1234 | 1234 | |