Re: [FFmpeg-devel] [PATCH] avcodec/libaom: fix setting amount of threads

2018-09-13 Thread James Almer
On 9/13/2018 1:32 PM, Jan Ekström wrote: > On Thu, Sep 13, 2018 at 7:26 PM, James Almer wrote: >> The libaom doxy says that a value of 0 for the threads fields is >> equivalent to a value of 1, whereas for avctx->thread_count it means >> the maximum amount of threads possible for the host system.

Re: [FFmpeg-devel] [PATCH] avcodec/libaom: fix setting amount of threads

2018-09-13 Thread Jan Ekström
On Thu, Sep 13, 2018 at 7:26 PM, James Almer wrote: > The libaom doxy says that a value of 0 for the threads fields 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 thre