Commit d44e0d8b 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>
parent 26c0cc15
......@@ -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;
......
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