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

Michael Niedermayer git at videolan.org
Sun Mar 29 03:41:09 CEST 2015


ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 20 20:57:31 2015 +0100| [8f65bedbaff42b046061b1874a4980f4d65b589e] | committer: Michael Niedermayer

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

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

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

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

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

diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
index 9cedae1..a7334fc 100644
--- a/libavformat/wtvdec.c
+++ b/libavformat/wtvdec.c
@@ -760,7 +760,7 @@ static int recover(WtvContext *wtv, uint64_t broken_pos)
     int i;
     for (i = 0; i < wtv->nb_index_entries; i++) {
         if (wtv->index_entries[i].pos > broken_pos) {
-            int ret = avio_seek(pb, wtv->index_entries[i].pos, SEEK_SET);
+            int64_t ret = avio_seek(pb, wtv->index_entries[i].pos, SEEK_SET);
             if (ret < 0)
                 return ret;
             wtv->pts = wtv->index_entries[i].timestamp;



More information about the ffmpeg-cvslog mailing list