mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-28 08:17:29 +00:00
As new demuxers are added, this will get quite full of files, so it'll be good to have a separate folder for these. To avoid too many chained namespaces, the Containers subdirectory is not also a namespace, but the Matroska folder is for the sake of separating the multiple classes for parsed information entering the Video namespace.
17 lines
396 B
C++
17 lines
396 B
C++
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibVideo/Containers/Matroska/Reader.h>
|
|
#include <stddef.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
|
|
{
|
|
auto matroska_document = Video::Matroska::Reader::parse_matroska_from_data(data, size);
|
|
if (!matroska_document)
|
|
return -1;
|
|
return 0;
|
|
}
|