[FFmpeg-cvslog] avformat/gxf: Use 64bit for res to avoid overflow

Michael Niedermayer git at videolan.org
Sat Mar 14 14:41:06 CET 2015


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 20 20:14:56 2015 +0100| [2ee4b48c9b72867ceae99151a0c69d3f7be1660e] | committer: Michael Niedermayer

avformat/gxf: Use 64bit for res to avoid overflow

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 12987f89007ee82b9d3a6090085dfaef8461ab8b)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ee4b48c9b72867ceae99151a0c69d3f7be1660e
---

 libavformat/gxf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/gxf.c b/libavformat/gxf.c
index c36479a..f8053a0 100644
--- a/libavformat/gxf.c
+++ b/libavformat/gxf.c
@@ -556,7 +556,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];



More information about the ffmpeg-cvslog mailing list