[FFmpeg-cvslog] avformat/idcin: Use 64bit for ret to avoid overflow

Michael Niedermayer git at videolan.org
Sat Mar 21 02:30:00 CET 2015


ffmpeg | branch: release/2.5 | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 20 20:13:06 2015 +0100| [5a829ee69e23d87cbd5359c3e80c585f99c46ab5] | committer: Michael Niedermayer

avformat/idcin: Use 64bit for ret to avoid overflow

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

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

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

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

diff --git a/libavformat/idcin.c b/libavformat/idcin.c
index d7a46a1..4e455bf 100644
--- a/libavformat/idcin.c
+++ b/libavformat/idcin.c
@@ -359,7 +359,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);



More information about the ffmpeg-cvslog mailing list