Skip to content
Snippets Groups Projects
Commit d917f256 authored by Bryan Huh's avatar Bryan Huh Committed by Michael Niedermayer
Browse files

avformat/cache: Use int64_t to avoid int overflow in cache_read

Fixes an issue where an int64_t ffurl_seek return-value was being stored
in an int (32-bit) "r" variable, leading to integer overflow when seeking
into a large file (>2GB), and ultimately a "Failed to perform internal
seek" error mesage.

To test, try running `ffprobe 'cache:http://<something

>'` on a file that
is ~3GB large, whose moov atom is at the end of the file

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6df2c941
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment