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-12 18:03:50 +0100
commit3d023f4343d6e68009313d7ef0d239edb09c4a96 (patch)
tree4defc981a77b2a27ec231e8a3c8270ddd9d83c7e
parent4640184c76f2da094dcbec54321d55b96153cb70 (diff)
downloadffmpeg-3d023f4343d6e68009313d7ef0d239edb09c4a96.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> (cherry picked from commit f8be605800b801e59ea49657a560287883ebfc8a) 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 e773ba7775..fc8df84fc6 100644
--- a/libavformat/gxf.c
+++ b/libavformat/gxf.c
@@ -531,7 +531,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];