[FFmpeg-cvslog] ffv1enc_vulkan: allow slicecrc=2

Lynne git at videolan.org
Tue May 27 15:51:17 EEST 2025


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Tue May 27 15:20:29 2025 +0900| [bf6d3dc339b6be1b07ba0812ab0d96d45f1dd53d] | committer: Lynne

ffv1enc_vulkan: allow slicecrc=2

For parity with the software encoder.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf6d3dc339b6be1b07ba0812ab0d96d45f1dd53d
---

 libavcodec/ffv1enc_vulkan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/ffv1enc_vulkan.c b/libavcodec/ffv1enc_vulkan.c
index 15aaddac98..b2dbcda0ce 100644
--- a/libavcodec/ffv1enc_vulkan.c
+++ b/libavcodec/ffv1enc_vulkan.c
@@ -1761,8 +1761,8 @@ static av_cold int vulkan_encode_ffv1_close(AVCodecContext *avctx)
 #define OFFSET(x) offsetof(VulkanEncodeFFv1Context, x)
 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 static const AVOption vulkan_encode_ffv1_options[] = {
-    { "slicecrc", "Protect slices with CRCs", OFFSET(ctx.ec), AV_OPT_TYPE_BOOL,
-            { .i64 = -1 }, -1, 1, VE },
+    { "slicecrc", "Protect slices with CRCs", OFFSET(ctx.ec), AV_OPT_TYPE_INT,
+            { .i64 = -1 }, -1, 2, VE },
     { "context", "Context model", OFFSET(ctx.context_model), AV_OPT_TYPE_INT,
             { .i64 = 0 }, 0, 1, VE },
     { "coder", "Coder type", OFFSET(ctx.ac), AV_OPT_TYPE_INT,



More information about the ffmpeg-cvslog mailing list