FFmpeg
Macros | Functions | Variables
target_enc_fuzzer.c File Reference
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/bytestream.h"
#include "libavcodec/codec_internal.h"
#include "libavformat/avformat.h"

Go to the source code of this file.

Macros

#define ENCODER_SYMBOL0(CODEC)   ff_##CODEC##_encoder
 
#define ENCODER_SYMBOL(CODEC)   ENCODER_SYMBOL0(CODEC)
 

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 
static void error (const char *err)
 
static int encode (AVCodecContext *enc_ctx, AVFrame *frame, AVPacket *pkt)
 

Variables

const FFCodeccodec_list []
 
static const FFCodecc = NULL
 
const uint32_t maxiteration = 8096
 

Macro Definition Documentation

◆ ENCODER_SYMBOL0

#define ENCODER_SYMBOL0 (   CODEC)    ff_##CODEC##_encoder

◆ ENCODER_SYMBOL

#define ENCODER_SYMBOL (   CODEC)    ENCODER_SYMBOL0(CODEC)

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)

Definition at line 73 of file target_enc_fuzzer.c.

◆ error()

static void error ( const char *  err)
static

Definition at line 40 of file target_enc_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ encode()

static int encode ( AVCodecContext enc_ctx,
AVFrame frame,
AVPacket pkt 
)
static

Definition at line 52 of file target_enc_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

Variable Documentation

◆ codec_list

const FFCodec* codec_list[]

Referenced by LLVMFuzzerTestOneInput().

◆ c

const FFCodec* c = NULL
static

Definition at line 46 of file target_enc_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().

◆ maxiteration

const uint32_t maxiteration = 8096

Definition at line 49 of file target_enc_fuzzer.c.

Referenced by LLVMFuzzerTestOneInput().