mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
tools/target_dem_fuzzer: Implement AVSEEK_SIZE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a5313ce654
commit
3e651eeac4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user