[FFmpeg-devel] [PATCH 1/3] tools/target_dec_fuzzer: set some avctx->export_side_data flags
James Almer
jamrial at gmail.com
Tue Jul 26 15:16:03 EEST 2022
On 7/19/2022 10:44 AM, James Almer wrote:
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> tools/target_dec_fuzzer.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
> index 1587045e02..7d71dd39e3 100644
> --- a/tools/target_dec_fuzzer.c
> +++ b/tools/target_dec_fuzzer.c
> @@ -336,7 +336,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
> if ((flags & 0x10) && c->p.id != AV_CODEC_ID_H264)
> ctx->flags2 |= AV_CODEC_FLAG2_FAST;
> if (flags & 0x80)
> - ctx->flags2 |= AV_CODEC_FLAG2_EXPORT_MVS;
> + ctx->export_side_data |= AV_CODEC_EXPORT_DATA_MVS;
>
> if (flags & 0x40)
> av_force_cpu_flags(0);
> @@ -404,6 +404,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
> ctx->debug |= FF_DEBUG_QP;
> if (flags64 &4)
> ctx->debug |= FF_DEBUG_MB_TYPE;
> + if (flags64 & 8)
> + ctx->export_side_data |= AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS;
>
> if (extradata_size < size) {
> ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
Will apply the patchset.
More information about the ffmpeg-devel
mailing list