History

tools/target_dec_fuzzer: enable mjpeg for tiff or tdsc

This is needed for fuzzing tiff/tdsc and should increase coverage

Michael Niedermayer committed 6 years ago

Commit 3371d061 parent b7e5c8f2 files · +7 −0Browse files

Unified · Split

2 files
  1. libavcodec/allcodecs.c +1 −0
  2. tools/target_dec_fuzzer.c +6 −0
libavcodec/allcodecs.c+1−0
@@ -812,6 +812,7 @@ extern AVCodec ff_vp9_qsv_encoder; · 811 unmodified lines
812812 // The iterate API is not usable with ossfuzz due to the excessive size of binaries created
813813 #if CONFIG_OSSFUZZ
814814 AVCodec * codec_list[] = {
815+ NULL,
815816 NULL,
816817 NULL
817818 };
tools/target_dec_fuzzer.c+6−0
@@ -120,6 +120,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { · 119 unmodified lines
120120 codec_list[0] = &DECODER_SYMBOL(FFMPEG_DECODER);
121121 avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER));
122122
123+#if FFMPEG_DECODER == tiff || FFMPEG_DECODER == tdsc
124+ extern AVCodec DECODER_SYMBOL(mjpeg);
125+ codec_list[1] = &DECODER_SYMBOL(mjpeg);
126+ avcodec_register(&DECODER_SYMBOL(mjpeg));
127+#endif
128+
123129 c = &DECODER_SYMBOL(FFMPEG_DECODER);
124130 #else
125131 avcodec_register_all();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t