Fix ffmpeg integration for ffmpeg 5.0 (#2326)
Summary: This commit makes the FFmpeg integration support FFmpeg 5.0 In FFmpeg 5, functions like `av_find_input_format` and `avformat_open_input` are changed, so that they deal with constant version of `AVInputFormat`. > 2021-04-27 - 56450a0ee4 - lavf 59.0.100 - avformat.h > Constified the pointers to AVInputFormats and AVOutputFormats > in AVFormatContext, avformat_alloc_output_context2(), > av_find_input_format(), av_probe_input_format(), > av_probe_input_format2(), av_probe_input_format3(), > av_probe_input_buffer2(), av_probe_input_buffer(), > avformat_open_input(), av_guess_format() and av_guess_codec(). > Furthermore, constified the AVProbeData in av_probe_input_format(), > av_probe_input_format2() and av_probe_input_format3(). https://github.com/FFmpeg/FFmpeg/blob/4e6debe1df7d53f3f59b37449b82265d5c08a172/doc/APIchanges#L252-L260 Pull Request resolved: https://github.com/pytorch/audio/pull/2326 Reviewed By: carolineechen Differential Revision: D35551380 Pulled By: mthrok fbshipit-source-id: ccb4f713076ae8693d8d77ac2cb4ad865556a666
Showing
Please register or sign in to comment