diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-02-02 02:39:00 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-02-03 15:23:22 +0000 |
commit | 898276c16b1683ac77723e97574a3bfdb29507fd (patch) | |
tree | 5475ea6255f03883dd23a1ac66ca7643d6a6c50e | |
parent | ec524ed12aa1aeb37125203f1adf5aa10dfcb0de (diff) | |
download | ffmpeg-898276c16b1683ac77723e97574a3bfdb29507fd.tar.gz |
r3d: Fix pos type
avio_tell can return a negative number.
Bug-Id: CID 1265715
CC: libav-stable@libav.org
-rw-r--r-- | libavformat/r3d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/r3d.c b/libavformat/r3d.c index 74a1f2baa2..1c80dcecf7 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; |