[FFmpeg-cvslog] vc2enc: mark as FF_CODEC_CAP_INIT_THREADSAFE and align AVCodec entries
Rostislav Pehlivanov
git at videolan.org
Fri Feb 26 13:17:50 CET 2016
ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Fri Feb 26 12:16:25 2016 +0000| [35346c7b0f7cddf8581a6aac3178c3ecf7c25283] | committer: 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: Rostislav Pehlivanov <atomnuker at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35346c7b0f7cddf8581a6aac3178c3ecf7c25283
---
libavcodec/vc2enc.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index dc0270d..71f74b5 100644
--- a/libavcodec/vc2enc.c
+++ b/libavcodec/vc2enc.c
@@ -1185,16 +1185,17 @@ static const enum AVPixelFormat allowed_pix_fmts[] = {
};
AVCodec ff_vc2_encoder = {
- .name = "vc2",
- .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-2"),
- .type = AVMEDIA_TYPE_VIDEO,
- .id = AV_CODEC_ID_DIRAC,
+ .name = "vc2",
+ .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-2"),
+ .type = AVMEDIA_TYPE_VIDEO,
+ .id = AV_CODEC_ID_DIRAC,
.priv_data_size = sizeof(VC2EncContext),
- .init = vc2_encode_init,
- .close = vc2_encode_end,
- .capabilities = AV_CODEC_CAP_SLICE_THREADS,
- .encode2 = vc2_encode_frame,
- .priv_class = &vc2enc_class,
- .defaults = vc2enc_defaults,
- .pix_fmts = allowed_pix_fmts
+ .init = vc2_encode_init,
+ .close = vc2_encode_end,
+ .capabilities = AV_CODEC_CAP_SLICE_THREADS,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
+ .encode2 = vc2_encode_frame,
+ .priv_class = &vc2enc_class,
+ .defaults = vc2enc_defaults,
+ .pix_fmts = allowed_pix_fmts
};
More information about the ffmpeg-cvslog
mailing list