]> git.sesse.net Git - ffmpeg/commitdiff
r3d: Fix pos type
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 2 Feb 2015 01:39:00 +0000 (02:39 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 3 Feb 2015 15:23:22 +0000 (15:23 +0000)
avio_tell can return a negative number.

Bug-Id: CID 1265715
CC: libav-stable@libav.org
libavformat/r3d.c

index 74a1f2baa2681a43edd43ed24941315c1c16af7f..1c80dcecf78f47afb408d690681dc54e4cdfbe52 100644 (file)
@@ -219,7 +219,7 @@ static int r3d_read_redv(AVFormatContext *s, AVPacket *pkt, Atom *atom)
     AVStream *st = s->streams[0];
     int tmp;
     int av_unused tmp2;
-    uint64_t pos = avio_tell(s->pb);
+    int64_t pos = avio_tell(s->pb);
     unsigned dts;
     int ret;
 
@@ -274,7 +274,7 @@ static int r3d_read_reda(AVFormatContext *s, AVPacket *pkt, Atom *atom)
     AVStream *st = s->streams[1];
     int av_unused tmp, tmp2;
     int samples, size;
-    uint64_t pos = avio_tell(s->pb);
+    int64_t pos = avio_tell(s->pb);
     unsigned dts;
     int ret;