summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/wtvdec.c2
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;