Commit 73581afe authored by Michael Niedermayer's avatar Michael Niedermayer

nutdec: fix integer overflow

Fixes CID700575
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d633e15d
......@@ -789,7 +789,7 @@ static int decode_frame_header(NUTContext *nut, int64_t *pts, int *stream_id,
if (coded_pts < (1 << stc->msb_pts_shift)) {
*pts = ff_lsb2full(stc, coded_pts);
} else
*pts = coded_pts - (1 << stc->msb_pts_shift);
*pts = coded_pts - (1LL << stc->msb_pts_shift);
} else
*pts = stc->last_pts + pts_delta;
if (flags & FLAG_SIZE_MSB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment