FFmpeg
Functions | Variables
target_dec_fuzzer.c File Reference
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/bytestream.h"
#include "libavformat/avformat.h"
#include "libavcodec/internal.h"

Go to the source code of this file.

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 
static void error (const char *err)
 
static const AVCodecAVCodecInitialize (enum AVCodecID codec_id)
 
static int subtitle_handler (AVCodecContext *avctx, void *frame, int *got_sub_ptr, AVPacket *avpkt)
 
static int audio_video_handler (AVCodecContext *avctx, AVFrame *frame, int *got_frame, const AVPacket *dummy)
 

Variables

const AVCodeccodec_list []
 
static const AVCodecc = NULL
 
const uint32_t maxiteration = 8096
 
static const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
 

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Definition at line 105 of file target_dec_fuzzer.c.

◆ error()

static void error ( const char *  err)
static

Definition at line 65 of file target_dec_fuzzer.c.

Referenced by AVCodecInitialize(), and LLVMFuzzerTestOneInput().

◆ AVCodecInitialize()

static const AVCodec* AVCodecInitialize ( enum AVCodecID  codec_id)
static

Definition at line 72 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ subtitle_handler()

static int subtitle_handler ( AVCodecContext avctx,
void *  frame,
int got_sub_ptr,
AVPacket avpkt 
)
static

Definition at line 82 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ audio_video_handler()

static int audio_video_handler ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
const AVPacket dummy 
)
static

Definition at line 92 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

◆ codec_list

const AVCodec* codec_list[]

◆ c

const AVCodec* c = NULL
static

Definition at line 71 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ maxiteration

const uint32_t maxiteration = 8096

Definition at line 101 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ FUZZ_TAG

const uint64_t FUZZ_TAG = 0x4741542D5A5A5546ULL
static

Definition at line 103 of file target_dec_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().