[FFmpeg-cvslog] tools/target_dec_fuzzer: remove calls to avcodec_register*()

James Almer git at videolan.org
Mon Oct 19 18:09:09 EEST 2020


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Oct 10 00:32:04 2020 -0300| [3e4214109a1ef394af8cc92064deff254989bf09] | committer: James Almer

tools/target_dec_fuzzer: remove calls to avcodec_register*()

They are no longer needed.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e4214109a1ef394af8cc92064deff254989bf09
---

 tools/target_dec_fuzzer.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 6b75e006e6..0df3e75cba 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -118,17 +118,14 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
 #define DECODER_SYMBOL(CODEC) DECODER_SYMBOL0(CODEC)
         extern AVCodec DECODER_SYMBOL(FFMPEG_DECODER);
         codec_list[0] = &DECODER_SYMBOL(FFMPEG_DECODER);
-        avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER));
 
 #if FFMPEG_DECODER == tiff || FFMPEG_DECODER == tdsc
         extern AVCodec DECODER_SYMBOL(mjpeg);
         codec_list[1] = &DECODER_SYMBOL(mjpeg);
-        avcodec_register(&DECODER_SYMBOL(mjpeg));
 #endif
 
         c = &DECODER_SYMBOL(FFMPEG_DECODER);
 #else
-        avcodec_register_all();
         c = AVCodecInitialize(FFMPEG_CODEC);  // Done once.
 #endif
         av_log_set_level(AV_LOG_PANIC);



More information about the ffmpeg-cvslog mailing list