mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
nut: fix int32 overflow
Fixes CID700574 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
340305646a
commit
de6c150444
@ -155,7 +155,7 @@ void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int64_t ff_lsb2full(StreamContext *stream, int64_t lsb){
|
int64_t ff_lsb2full(StreamContext *stream, int64_t lsb){
|
||||||
int64_t mask = (1<<stream->msb_pts_shift)-1;
|
int64_t mask = (1ULL<<stream->msb_pts_shift)-1;
|
||||||
int64_t delta= stream->last_pts - mask/2;
|
int64_t delta= stream->last_pts - mask/2;
|
||||||
return ((lsb - delta)&mask) + delta;
|
return ((lsb - delta)&mask) + delta;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user