[FFmpeg-devel] [PATCH 1/5] avcodec/ffv1enc: allow manually specifying the crc type
Jerome Martinez
jerome at mediaarea.net
Fri Oct 11 10:44:37 EEST 2024
Le 10/10/2024 à 22:45, Michael Niedermayer a écrit :
> [...]
>
> @@ -1266,7 +1268,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
> #define OFFSET(x) offsetof(FFV1Context, x)
> #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
> static const AVOption options[] = {
> - { "slicecrc", "Protect slices with CRCs", OFFSET(ec), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, VE },
> + { "slicecrc", "Protect slices with CRCs", OFFSET(ec), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 2, VE },
This is no more a bool.
> { "coder", "Coder type", OFFSET(ac), AV_OPT_TYPE_INT,
> { .i64 = 0 }, -2, 2, VE, .unit = "coder" },
> { "rice", "Golomb rice", 0, AV_OPT_TYPE_CONST,
More information about the ffmpeg-devel
mailing list