[FFmpeg-devel] [PATCH 2/2] tools/target_dec_fuzzer: List valid codec tags (based on fate)

James Almer jamrial at gmail.com
Sun Dec 29 19:13:58 EET 2019

On 12/28/2019 5:16 PM, Michael Niedermayer wrote:
> I am a bit undecided on listing them like this but it seems the
> fuzzer has difficulty finding valid tags (like in hapdec/snappy)
> With this it finds issues in hapdec within seconds locally (with constrained w/h)
> while before on googles machienes it seemed not to get past the codec_tag
> switch at all on the days i checked

What about adding an array of supported codec_tag to AVCodec, much like
the ones in AVOutputFormat and AVInputFormat? One can then be chosen at
random here like i did with codec_id in the bsf fuzzer.

Different decoders and encoders for the same codecs (internal vs
external ones for example) tend to have different feature sets that many
times are informed with codec tags, so this could even be used to choose
the best decoder/encoder assuming more than one is compiled in.

More information about the ffmpeg-devel mailing list