aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-20 20:14:56 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-29 03:34:21 +0200
commit2046275aaffaa6c47b14e52f028e814044d9e148 (patch)
treedcc3e320a41efed7ed00f4fbd303af34b53bd1fa
parent1ee7f2d77e36c59cf79ea2bea2a29b7fd744f9b1 (diff)
downloadffmpeg-2046275aaffaa6c47b14e52f028e814044d9e148.tar.gz
avformat/gxf: Use 64bit for res to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 12987f89007ee82b9d3a6090085dfaef8461ab8b) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/gxf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gxf.c b/libavformat/gxf.c
index 6c624f00a8..d9b629d7de 100644
--- a/libavformat/gxf.c
+++ b/libavformat/gxf.c
@@ -560,7 +560,7 @@ static int gxf_packet(AVFormatContext *s, AVPacket *pkt) {
}
static int gxf_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) {
- int res = 0;
+ int64_t res = 0;
uint64_t pos;
uint64_t maxlen = 100 * 1024 * 1024;
AVStream *st = s->streams[0];