Commit 3e651eea authored by Michael Niedermayer's avatar Michael Niedermayer

tools/target_dem_fuzzer: Implement AVSEEK_SIZE

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a5313ce6
...@@ -70,6 +70,8 @@ static int64_t io_seek(void *opaque, int64_t offset, int whence) ...@@ -70,6 +70,8 @@ static int64_t io_seek(void *opaque, int64_t offset, int whence)
if (offset > INT64_MAX - c->filesize) if (offset > INT64_MAX - c->filesize)
return -1; return -1;
offset += c->filesize; offset += c->filesize;
} else if (whence == AVSEEK_SIZE) {
return c->filesize;
} }
if (offset < 0 || offset > c->filesize) if (offset < 0 || offset > c->filesize)
return -1; return -1;
......
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