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

Michael Niedermayer michaelni at gmx.at
Mon May 4 02:37:11 CEST 2015

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_scale.
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavformat/matroskadec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150504/b3b523c5/attachment.asc>

More information about the ffmpeg-devel mailing list