1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

tools/target_bsf_fuzzer: set aud option on h266_metadata bsf

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-06-29 09:58:29 -03:00
parent 05186be641
commit 9367b58e71

View File

@ -94,7 +94,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (flags & 0x20) {
if (!strcmp(f->name, "av1_metadata"))
av_opt_set_int(bsf->priv_data, "td", bytestream2_get_byte(&gbc) % 3, 0);
else if (!strcmp(f->name, "h264_metadata") || !strcmp(f->name, "h265_metadata"))
else if (!strcmp(f->name, "h264_metadata") || !strcmp(f->name, "h265_metadata") ||
!strcmp(f->name, "h266_metadata"))
av_opt_set_int(bsf->priv_data, "aud", bytestream2_get_byte(&gbc) % 3, 0);
else if (!strcmp(f->name, "extract_extradata"))
av_opt_set_int(bsf->priv_data, "remove", bytestream2_get_byte(&gbc) & 1, 0);