diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-20 22:45:32 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-20 22:45:32 +0400 |
commit | 73581afe01b41d0028afb6b14f5493568cf1be3d (patch) | |
tree | 4f17a5762c1db5f00a91f5999f93221f3dbb6df7 /libavformat | |
parent | d633e15d7d939f532326e2bc92097b12eba4d5ae (diff) |
nutdec: fix integer overflow
Fixes CID700575
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/nutdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 492d5c83dc..1ba79ebcbf 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -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) |