Commit 6faf18ac authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d44e0d8b)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 96807933
...@@ -767,7 +767,7 @@ static int recover(WtvContext *wtv, uint64_t broken_pos) ...@@ -767,7 +767,7 @@ static int recover(WtvContext *wtv, uint64_t broken_pos)
int i; int i;
for (i = 0; i < wtv->nb_index_entries; i++) { for (i = 0; i < wtv->nb_index_entries; i++) {
if (wtv->index_entries[i].pos > broken_pos) { 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) if (ret < 0)
return ret; return ret;
wtv->pts = wtv->index_entries[i].timestamp; wtv->pts = wtv->index_entries[i].timestamp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment