Commit 550a6b42 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/avcodec: Add codec_tags array to AVCodec

This allows the fuzzer to target meaningfull codec tags instead
of hunting the 4gb space, which it seems to have problems with.

Suggested-by: James
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent d48e5101
...@@ -3644,6 +3644,11 @@ typedef struct AVCodec { ...@@ -3644,6 +3644,11 @@ typedef struct AVCodec {
* The user can only access this field via avcodec_get_hw_config(). * The user can only access this field via avcodec_get_hw_config().
*/ */
const struct AVCodecHWConfigInternal **hw_configs; const struct AVCodecHWConfigInternal **hw_configs;
/**
* List of supported codec_tags, terminated by FF_CODEC_TAGS_END.
*/
const uint32_t *codec_tags;
} AVCodec; } AVCodec;
#if FF_API_CODEC_GET_SET #if FF_API_CODEC_GET_SET
......
...@@ -69,6 +69,12 @@ ...@@ -69,6 +69,12 @@
*/ */
#define FF_CODEC_CAP_SLICE_THREAD_HAS_MF (1 << 5) #define FF_CODEC_CAP_SLICE_THREAD_HAS_MF (1 << 5)
/**
* AVCodec.codec_tags termination value
*/
#define FF_CODEC_TAGS_END -1
#ifdef TRACE #ifdef TRACE
# define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__) # define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment