[FFmpeg-devel] [PATCH] tools/target_dem_fuzzer: ignore avformat_find_stream_info() failure

Michael Niedermayer michael at niedermayer.cc
Thu Jun 13 14:09:34 EEST 2019


Such a failure should not be fatal and its worth testing this path too

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 tools/target_dem_fuzzer.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c
index b51c766878..409599636d 100644
--- a/tools/target_dem_fuzzer.c
+++ b/tools/target_dem_fuzzer.c
@@ -141,8 +141,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     }
 
     ret = avformat_find_stream_info(avfmt, NULL);
-    if (ret < 0)
-        goto end;
 
     av_init_packet(&pkt);
 
-- 
2.21.0



More information about the ffmpeg-devel mailing list