[FFmpeg-devel] [PATCH] avcodec/libvpxenc: fix setting amount of threads used for encoding
jamrial at gmail.com
Tue May 22 01:51:02 EEST 2018
On 5/21/2018 4:16 PM, James Zern wrote:
> 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