History

ffv1enc_vulkan: allow slicecrc=2

For parity with the software encoder.

Lynne committed 1 year ago

Commit bf6d3dc1 parent 54c865f1 file · +2 −2Browse files

Unified · Split

libavcodec/ffv1enc_vulkan.c+2−2
@@ -1761,8 +1761,8 @@ static av_cold int vulkan_encode_ffv1_close(AVCodecContext *avctx) · 1760 unmodified lines
17611761 #define OFFSET(x) offsetof(VulkanEncodeFFv1Context, x)
17621762 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
17631763 static const AVOption vulkan_encode_ffv1_options[] = {
1764− { "slicecrc", "Protect slices with CRCs", OFFSET(ctx.ec), AV_OPT_TYPE_BOOL,
1765− { .i64 = -1 }, -1, 1, VE },
1764+ { "slicecrc", "Protect slices with CRCs", OFFSET(ctx.ec), AV_OPT_TYPE_INT,
1765+ { .i64 = -1 }, -1, 2, VE },
17661766 { "context", "Context model", OFFSET(ctx.context_model), AV_OPT_TYPE_INT,
17671767 { .i64 = 0 }, 0, 1, VE },
17681768 { "coder", "Coder type", OFFSET(ctx.ac), AV_OPT_TYPE_INT,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t