MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / AVCodecInitialize

Function AVCodecInitialize

tools/target_dec_fuzzer.c:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76#ifndef FFMPEG_DECODER
77static const FFCodec *AVCodecInitialize(enum AVCodecID codec_id)
78{
79 const AVCodec *res;
80
81 res = avcodec_find_decoder(codec_id);
82 if (!res)
83 error("Failed to find decoder");
84 return ffcodec(res);
85}
86#endif
87
88static int subtitle_handler(AVCodecContext *avctx, AVFrame *unused,

Callers 1

LLVMFuzzerTestOneInputFunction · 0.85

Calls 3

avcodec_find_decoderFunction · 0.85
ffcodecFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected