aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_dem_fuzzer.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-06-08 01:03:17 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-06-08 12:27:18 +0200
commit3e651eeac4001820a4b1ac6a31974753288bb9ed (patch)
tree452a31231013052491bdab9898239c26b9d28d48 /tools/target_dem_fuzzer.c
parenta5313ce6542a4ee4112acd260e59bff698f3dddd (diff)
downloadffmpeg-3e651eeac4001820a4b1ac6a31974753288bb9ed.tar.gz
tools/target_dem_fuzzer: Implement AVSEEK_SIZE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools/target_dem_fuzzer.c')
-rw-r--r--tools/target_dem_fuzzer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c
index 409599636d..cc097da0d7 100644
--- a/tools/target_dem_fuzzer.c
+++ b/tools/target_dem_fuzzer.c
@@ -70,6 +70,8 @@ static int64_t io_seek(void *opaque, int64_t offset, int whence)
if (offset > INT64_MAX - c->filesize)
return -1;
offset += c->filesize;
+ } else if (whence == AVSEEK_SIZE) {
+ return c->filesize;
}
if (offset < 0 || offset > c->filesize)
return -1;