diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-16 17:54:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-16 21:46:00 +0100 |
commit | 58f21b6c9354bbc8414d9ff87645a7292cbe0d92 (patch) | |
tree | 53dec63c5f861f60673db6ccd573fa7156364cc1 /libavformat/hls.c | |
parent | 00bd2374998856b71ff3ec50d3b6166f54d9601b (diff) | |
download | ffmpeg-58f21b6c9354bbc8414d9ff87645a7292cbe0d92.tar.gz |
avformat/hls: fix potential integer overflow
This is not a regression
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r-- | libavformat/hls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index 762e14041e..b7ef24290e 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1132,7 +1132,7 @@ static int open_input(HLSContext *c, struct playlist *pls, struct segment *seg) * should already be where want it to, but this allows e.g. local testing * without a HTTP server. */ if (ret == 0 && seg->key_type == KEY_NONE && seg->url_offset) { - int seekret = avio_seek(pls->input, seg->url_offset, SEEK_SET); + int64_t seekret = avio_seek(pls->input, seg->url_offset, SEEK_SET); if (seekret < 0) { av_log(pls->parent, AV_LOG_ERROR, "Unable to seek to offset %"PRId64" of HLS segment '%s'\n", seg->url_offset, seg->url); ret = seekret; |