• moto's avatar
    Use dlopen for FFmpeg (#3353) · b14ced1a
    moto authored
    Summary:
    This commit changes the way FFmpeg extension is built and used.
    Instead of linking (LGPL) FFmpeg libraries to torchaudio at build time,
    It uses dlopen to search and link them at run time.
    
    For dlopen-ing, we use PyTorch's `at::DynamicLibrary` class, which provides
    portable wrapper.
    
    Pull Request resolved: https://github.com/pytorch/audio/pull/3353
    
    Differential Revision: D46059199
    
    Pulled By: mthrok
    
    fbshipit-source-id: 4493a5fd8a4c802178d20276522f5334d637307d
    b14ced1a
conversion.cpp 21.6 KB