diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 20:57:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-20 20:57:31 +0100 |
commit | d44e0d8b930732a4a247b4884d75cf62b4ad3664 (patch) | |
tree | 32919fd88a1e1856c2ee9512f6867cd4d1ec9d7f /libavformat/wtvdec.c | |
parent | 26c0cc154e06cb0064b3a3da49447ac44d82444f (diff) | |
download | ffmpeg-d44e0d8b930732a4a247b4884d75cf62b4ad3664.tar.gz |
avformat/wtvdec: Use 64bit for ret to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/wtvdec.c')
-rw-r--r-- | libavformat/wtvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 95b2312fff..e226690283 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -767,7 +767,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; |