mirror of https://github.com/google/oss-fuzz.git
av1_dec_fuzzer: rm unused variables (#1816)
This commit is contained in:
parent
04537e050a
commit
445361ce6e
|
@ -10,8 +10,6 @@
|
|||
#include "aom_ports/mem_ops.h"
|
||||
#include "common/ivfdec.h"
|
||||
|
||||
static const char *const kIVFSignature = "DKIF";
|
||||
|
||||
static void close_file(FILE *file) { fclose(file); }
|
||||
|
||||
extern "C" void usage_exit(void) { exit(EXIT_FAILURE); }
|
||||
|
@ -45,8 +43,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int frame_in_cnt = 0;
|
||||
int frame_out_cnt = 0;
|
||||
uint8_t *buffer = nullptr;
|
||||
size_t buffer_size = 0;
|
||||
size_t frame_size = 0;
|
||||
|
@ -54,11 +50,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||
nullptr)) {
|
||||
const aom_codec_err_t err =
|
||||
aom_codec_decode(&codec, buffer, frame_size, nullptr);
|
||||
++frame_in_cnt;
|
||||
static_cast<void>(err);
|
||||
aom_codec_iter_t iter = nullptr;
|
||||
aom_image_t *img = nullptr;
|
||||
while ((img = aom_codec_get_frame(&codec, &iter)) != nullptr) {
|
||||
++frame_out_cnt;
|
||||
}
|
||||
}
|
||||
aom_codec_destroy(&codec);
|
||||
|
|
Loading…
Reference in New Issue