Moonbase59 / loudgain

ReplayGain 2.0 loudness normalizer based on the EBU R128/ITU BS.1770 standard (-18 LUFS, FLAC, Ogg, MP2, MP3, MP4, M4A, AAC, ALAC, Opus, ASF, WMA, WAV, AIFF, WavPack, APE)
Other
182 stars 23 forks source link

Only call av_register_all() if libavformat is older than version 58.9.100 #50

Open hughmcmaster opened 2 years ago

hughmcmaster commented 2 years ago

This patch adds a preprocessor #define to ensure we only call the deprecated function av_register_all() when working with versions of libavformat older than 58.9.100.

The function av_register_all() was removed in ffmpeg 5.0.

leigh123linux commented 2 years ago

Wouldn't it be easier to fix the broken check?

https://pkgs.rpmfusion.org/cgit/free/loudgain.git/plain/fix_ffmpeg5.patch