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)
committerAnton Khirnov <anton@khirnov.net>
Sat, 19 Nov 2011 09:22:27 +0000 (10:22 +0100)
commitd6f763659c6115e91d2fa981faffdb041d93f7a4
tree0f8a94bfadb0ba493f8490102ab5ceb57183db6a
parente297459eb694490c25acc65bcf75ee1630bd34b6
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>
(cherry picked from commit 52767d891c665ab1124fe4ce82d99b59673de7d2)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/utils.c