Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Michael Niedermayer authored on 2020/06/08 08:03:17... | ... |
@@ -70,6 +70,8 @@ static int64_t io_seek(void *opaque, int64_t offset, int whence) |
70 | 70 |
if (offset > INT64_MAX - c->filesize) |
71 | 71 |
return -1; |
72 | 72 |
offset += c->filesize; |
73 |
+ } else if (whence == AVSEEK_SIZE) { |
|
74 |
+ return c->filesize; |
|
73 | 75 |
} |
74 | 76 |
if (offset < 0 || offset > c->filesize) |
75 | 77 |
return -1; |