diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-03-09 18:00:44 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-03-16 10:34:29 +0100 |
commit | 8a129077cc37202a00dd666bd5365c3f61ea2e80 (patch) | |
tree | 37c74788d6f529596bf635340648a4f51b57a41e /libavcodec/libxavs.c | |
parent | b60fe9508f5cf2adec82b0411c313c5638f33cc5 (diff) | |
download | ffmpeg-8a129077cc37202a00dd666bd5365c3f61ea2e80.tar.gz |
lavc: replace internal use of AV_CODEC_CAP_AUTO_THREADS with an internal cap
AV_CODEC_CAP_AUTO_THREADS was originally added in b4d44a45f9a to mark
codecs that spawn threads internally and are able to select an optimal
threads count by themselves (all such codecs are wrappers around
external libraries). It is used by lavc generic code to check whether it
should handle thread_count=0 itself or pass the zero directly to the
codec implementation. Within this meaning, it is clearly supposed to be
an internal cap rather than a public one, since from the viewpoint of a
libavcodec user, lavc ALWAYS handles thread_count=0. Whether it happens
in the generic code or within the codec internals is not a meaningful
difference for the caller.
External aspects of this flag will be dealt with in the following
commit.
Diffstat (limited to 'libavcodec/libxavs.c')
-rw-r--r-- | libavcodec/libxavs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c index 752ff66dfa..12d5a5eb9e 100644 --- a/libavcodec/libxavs.c +++ b/libavcodec/libxavs.c @@ -476,6 +476,7 @@ AVCodec ff_libxavs_encoder = { .encode2 = XAVS_frame, .close = XAVS_close, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AUTO_THREADS, + .caps_internal = FF_CODEC_CAP_AUTO_THREADS, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, .priv_class = &xavs_class, .defaults = xavs_defaults, |