[FFmpeg-cvslog] tools/target_dem_fuzzer: Implement AVSEEK_SIZE

Michael Niedermayer git at videolan.org
Mon Jun 8 13:27:46 EEST 2020


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Jun  8 01:03:17 2020 +0200| [3e651eeac4001820a4b1ac6a31974753288bb9ed] | committer: Michael Niedermayer

tools/target_dem_fuzzer: Implement AVSEEK_SIZE

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e651eeac4001820a4b1ac6a31974753288bb9ed
---

 tools/target_dem_fuzzer.c | 2 ++
 1 file changed, 2 insertions(+)

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;



More information about the ffmpeg-cvslog mailing list