avio_tell can return a negative number.

Bug-Id: CID 1265715
CC: [email protected]
---

There are another couple of issues in this files if somebody wants to try 
something
easy.

 libavformat/r3d.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/r3d.c b/libavformat/r3d.c
index 74a1f2b..1c80dce 100644
--- a/libavformat/r3d.c
+++ b/libavformat/r3d.c
@@ -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;

--
1.9.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to