]> git.sesse.net Git - ffmpeg/commit
lavf: fix multiplication overflow in avformat_find_stream_info()
authorMans Rullgard <mans@mansr.com>
Tue, 15 Nov 2011 22:33:49 +0000 (22:33 +0000)
committerMans Rullgard <mans@mansr.com>
Tue, 15 Nov 2011 23:41:04 +0000 (23:41 +0000)
commit52767d891c665ab1124fe4ce82d99b59673de7d2
treed1ae8e5cc0e861517d195522fdf51348bba3869d
parentf1d1516e5523db43776a364007cc4e0da8a6de58
lavf: fix multiplication overflow in avformat_find_stream_info()

Converting to double before the multiplication rather than after
avoids an integer overflow in some cases.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/utils.c