mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-25 08:43:16 +00:00
avformat/wtvdec: Use 64bit for ret to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d44e0d8b93
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
81ee3385ee
commit
8f65bedbaf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user