[FFmpeg-devel] [PATCH] avcodec/libvpxenc: fix setting amount of threads used for encoding
James Zern
jzern at google.com
Mon May 21 22:16:43 EEST 2018
On Sat, May 19, 2018 at 11:16 AM James Almer <jamrial at gmail.com> wrote:
> The libvpx doxy says that a value of 0 for the g_threads field is
> equivalent to a value of 1, whereas for avctx->thread_count it means
> the maximum amount of threads possible for the host system.
> Use av_cpu_count() to get the correct thread count when auto threads
> is requested.
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> libavcodec/libvpxenc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
lgtm, thanks.
More information about the ffmpeg-devel
mailing list