summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers/FuzzMatroskaReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/Lagom/Fuzzers/FuzzMatroskaReader.cpp')
-rw-r--r--Meta/Lagom/Fuzzers/FuzzMatroskaReader.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzMatroskaReader.cpp b/Meta/Lagom/Fuzzers/FuzzMatroskaReader.cpp
index 762a7032f4..2272b8c107 100644
--- a/Meta/Lagom/Fuzzers/FuzzMatroskaReader.cpp
+++ b/Meta/Lagom/Fuzzers/FuzzMatroskaReader.cpp
@@ -11,10 +11,8 @@ extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
{
auto matroska_reader_result = Video::Matroska::Reader::from_data({ data, size });
if (matroska_reader_result.is_error())
- return -1;
- if (auto result = matroska_reader_result.value().segment_information(); result.is_error())
- return -1;
- if (auto result = matroska_reader_result.value().track_count(); result.is_error())
- return -1;
+ return 0;
+ (void)matroska_reader_result.value().segment_information();
+ (void)matroska_reader_result.value().track_count();
return 0;
}