summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Fuzzers/FuzzVP9Decoder.cpp
blob: 506b8c4ab547e1be778e6c152febc2505a45d00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright (c) 2022, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibVideo/VP9/Decoder.h>
#include <stddef.h>

extern "C" int LLVMFuzzerTestOneInput(u8 const* data, size_t size)
{
    Video::VP9::Decoder vp9_decoder;
    if (auto decode_error = vp9_decoder.receive_sample({ data, size }); decode_error.is_error())
        return -1;
    return 0;
}