Re: [FFmpeg-devel] [PATCH] avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations

2016-10-26 Thread Michael Niedermayer
On Sun, Sep 25, 2016 at 11:54:00PM +0200, Michael Niedermayer wrote: > Allowing larger timestamps makes it impossible to calculate basic things like > the > difference of 2 timestamps or their sum without checking each individual > computation for > overflow. > This should avoid a significant

[FFmpeg-devel] [PATCH] avformat/utils: Discard huge timestamps which would cause overflows if used in basic computations

2016-09-25 Thread Michael Niedermayer
Allowing larger timestamps makes it impossible to calculate basic things like the difference of 2 timestamps or their sum without checking each individual computation for overflow. This should avoid a significant number of overflow checks Fixes Ticket5136 Signed-off-by: Michael Niedermayer