From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 7E8144AB49 for ; Mon, 12 Aug 2024 00:06:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 695DF68D85C; Mon, 12 Aug 2024 03:06:38 +0300 (EEST) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E54DD68D6C2 for ; Mon, 12 Aug 2024 03:06:31 +0300 (EEST) Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5b8c2a6135eso2385659a12.0 for ; Sun, 11 Aug 2024 17:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723421191; x=1724025991; darn=ffmpeg.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=vmGdAykEdQrLw0c+UYbeGo4gtKMl8+sfXUon7/9n9yc=; b=Z092AmXwnmYRQ5iW66c063m9OJngMIKts63li/WR6bHcY8KrPpyhf3f3YADq+U8FXS WGdvAym1oFBAZiDx+q6xbUvzp9bDK+Juyb6/ycpcn3iDPDGFqRpIcU9OlV6+lFrFdE6U F6H++aGC432I3TE7w+Jc+CT/jTU2kCrzJxYk92LhYN40S4IvCgx5t7TVPSIYFqbQdV89 f4hHPSbbfDfb+OTDJnmCWifzgj65x7ZK9EhSyZqim14dCm+jxb/HKeX/GfIjz4W4aeaB EBzsPzq5myRGtvyaSd+qH+iifReeV9PPobZTd01F4TWCX+thYY6Zja8ct0dUXZciO1wv f8sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723421191; x=1724025991; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vmGdAykEdQrLw0c+UYbeGo4gtKMl8+sfXUon7/9n9yc=; b=nttMCXmKlKKHn9TWZou+ptr+AiG3S3jNTxUdtblde+EfOuIPbGuGAO5T8W8pk+bp8b pcqQjmpbiwlYghy2mMbUt2oucNvvjFUuFxP4acmEogv9jrti1gaHuQI7zhfX3O6dr6cS vt6zXd6rkXpwBZ4EezlOkTGWfi9MwpiTmwk6BeSW023xlLmc1eVQZI8wAm1mWIWMTitF up1Lco71ovRvnT8lv/LcskNDYZ/46Pfu2cPvHSRX0UQy9J7g3la6DOIsxt9s0pybxBeD qheHaIXslBFdsxxzKTdKpis0yxzJe6iGsQkm9rZprP8CkulHYKk7xDpWeBH9kLotce0v 4BAw== X-Gm-Message-State: AOJu0YyRwDh+tRYXgs3ustHL88Qdzn2MOZh/7SHuFzPs+mpH8pRxoHzK sJgRN29Wnc8P8YIxgyTH8qpHJn8YqhWTFHBBNiFC+9hvyJHcXBxypMCM29HGq1stcGM0XEsaq3E Sl4I2rQNt2m8f8BJOMrzb99F4j0ZQeTVIB6E= X-Google-Smtp-Source: AGHT+IG71cHQ79EkoILrarJy4clDZwgj9qz0GeiTc9vLlU+oCN/J0EiZqKP4tyxqog6quBZMXodIrzaDC0M+jpP66OE= X-Received: by 2002:a05:6402:13cb:b0:5bb:723:a189 with SMTP id 4fb4d7f45d1cf-5bbb3d103acmr10614837a12.14.1723421190768; Sun, 11 Aug 2024 17:06:30 -0700 (PDT) MIME-Version: 1.0 References: <20240811085902.181819-1-michael@niedermayer.cc> In-Reply-To: <20240811085902.181819-1-michael@niedermayer.cc> From: Kacper Michajlow Date: Mon, 12 Aug 2024 02:06:12 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] tools/target_enc_fuzzer: Add slices and level for FFv1 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Sun, 11 Aug 2024 at 10:59, Michael Niedermayer wrote: > > Sponsored-by: Sovereign Tech Fund > Signed-off-by: Michael Niedermayer > --- > tools/target_enc_fuzzer.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/target_enc_fuzzer.c b/tools/target_enc_fuzzer.c > index 059d7830710..59c2db4bb42 100644 > --- a/tools/target_enc_fuzzer.c > +++ b/tools/target_enc_fuzzer.c > @@ -149,6 +149,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { > av_dict_set_int(&opts, "coder", coder, 0); > av_dict_set_int(&opts, "context", bytestream2_get_byte(&gbc)&1, 0); > av_dict_set_int(&opts, "slicecrc", bytestream2_get_byte(&gbc)&1, 0); > + ctx->slices = bytestream2_get_byte(&gbc); > + ctx->level = bytestream2_get_byte(&gbc) % 6 - 1; Note sure that's correct. Depending on the codec numeric level value may differ, but generally it has higher value. Like 62 for "6.2" in h264 case, or 186 for "6.2" for h265 case. I would just remove `% 6 - 1` and let fuzzer find interesting values for each codec. - Kacper > break;} > } > } > -- > 2.45.2 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".