Commit 35346c7b authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

vc2enc: mark as FF_CODEC_CAP_INIT_THREADSAFE and align AVCodec entries

The encoder does not modify any global variables.
Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 2a7f056d
...@@ -1185,16 +1185,17 @@ static const enum AVPixelFormat allowed_pix_fmts[] = { ...@@ -1185,16 +1185,17 @@ static const enum AVPixelFormat allowed_pix_fmts[] = {
}; };
AVCodec ff_vc2_encoder = { AVCodec ff_vc2_encoder = {
.name = "vc2", .name = "vc2",
.long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-2"), .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-2"),
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_DIRAC, .id = AV_CODEC_ID_DIRAC,
.priv_data_size = sizeof(VC2EncContext), .priv_data_size = sizeof(VC2EncContext),
.init = vc2_encode_init, .init = vc2_encode_init,
.close = vc2_encode_end, .close = vc2_encode_end,
.capabilities = AV_CODEC_CAP_SLICE_THREADS, .capabilities = AV_CODEC_CAP_SLICE_THREADS,
.encode2 = vc2_encode_frame, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
.priv_class = &vc2enc_class, .encode2 = vc2_encode_frame,
.defaults = vc2enc_defaults, .priv_class = &vc2enc_class,
.pix_fmts = allowed_pix_fmts .defaults = vc2enc_defaults,
.pix_fmts = allowed_pix_fmts
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment