Re: [FFmpeg-devel] [PATCH] matroskadec: use uint64_t instead of int for index_scale

2015-05-03 Thread Michael Niedermayer
On Sun, May 03, 2015 at 11:07:20PM +0200, Andreas Cadhalpun wrote: > index_scale is set to matroska->time_scale of type uint64_t. > > When index_scale is int, the assignment can overflow and e.g. result > in index_scale = 0. This causes a floating point exception due to the > division by index_sca

[FFmpeg-devel] [PATCH] matroskadec: use uint64_t instead of int for index_scale

2015-05-03 Thread Andreas Cadhalpun
index_scale is set to matroska->time_scale of type uint64_t. When index_scale is int, the assignment can overflow and e.g. result in index_scale = 0. This causes a floating point exception due to the division by index_scale. Signed-off-by: Andreas Cadhalpun --- libavformat/matroskadec.c | 2 +-