Skip to content

Commit

Permalink
Bug 1768997 - Remove unused variables in av1_fuzzer.cpp. r=decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed May 13, 2022
1 parent 6a5a3de commit 5a28556
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions media/libaom/test/fuzztest/av1_fuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,16 @@ 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;
while (!ivf_read_frame(file.get(), &buffer, &frame_size, &buffer_size,
nullptr)) {
const aom_codec_err_t err =
aom_codec_decode(&codec, buffer, frame_size, nullptr);
++frame_in_cnt;
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);
Expand Down

0 comments on commit 5a28556

Please sign in to comment.