avcodec/libvpxdec: fix setting auto threads
a thread count of 0 is treated the same as 1, use av_cpu_count() to get the correct thread count when auto threads is requested. this matches the fix in libvpxenc: 27df34bf avcodec/libvpxenc: fix setting amount of threads used for encoding Reviewed-by: NJames Almer <jamrial@gmail.com> Signed-off-by: NJames Zern <jzern@google.com>
Showing
想要评论请 注册 或 登录