diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 20:13:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 20:30:11 +0100 |
commit | 1aea2213a68674b61f09bcde2a4ff94fb9d586a4 (patch) | |
tree | db0c5801db5e9005a6e071449c541b4eb94cebe4 | |
parent | 6ab48096f5bdd2a3218052bf65f919b8780d2c7d (diff) | |
download | ffmpeg-1aea2213a68674b61f09bcde2a4ff94fb9d586a4.tar.gz |
avformat/idcin: Use 64bit for ret to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d1923d15a3544cbb94563a59e7169291db76b312)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/idcin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/idcin.c b/libavformat/idcin.c index 9671fca6f8..e45376f0fa 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -357,7 +357,7 @@ static int idcin_read_seek(AVFormatContext *s, int stream_index, IdcinDemuxContext *idcin = s->priv_data; if (idcin->first_pkt_pos > 0) { - int ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET); + int64_t ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET); if (ret < 0) return ret; ff_update_cur_dts(s, s->streams[idcin->video_stream_index], 0); |