For parity with the software encoder.
Unified · Split
| @@ -1761,8 +1761,8 @@ static av_cold int vulkan_encode_ffv1_close(AVCodecContext *avctx) · 1760 unmodified lines | ||
| 1761 | 1761 | #define OFFSET(x) offsetof(VulkanEncodeFFv1Context, x) |
| 1762 | 1762 | #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
| 1763 | 1763 | 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 }, | |
| 1766 | 1766 | { "context", "Context model", OFFSET(ctx.context_model), AV_OPT_TYPE_INT, |
| 1767 | 1767 | { .i64 = 0 }, 0, 1, VE }, |
| 1768 | 1768 | { "coder", "Coder type", OFFSET(ctx.ac), AV_OPT_TYPE_INT, |