lib/ffmpeg/Init: fix av_register_all() deprecation warning

av_register_all() was deprecated in
FFmpeg/FFmpeg@0694d87024
This commit is contained in:
Max Kellermann 2018-04-25 21:35:33 +02:00
parent 44b200240f
commit 1e54297be8
2 changed files with 5 additions and 0 deletions

2
NEWS
View File

@ -3,6 +3,8 @@ ver 0.20.19 (not yet released)
- validate absolute seek time, reject negative values
* input
- mms: fix lockup bug and a crash bug
* decoder
- ffmpeg: fix av_register_all() deprecation warning (FFmpeg 4.0)
* player
- fix spurious "Not seekable" error when switching radio streams
* macOS: fix crash bug

View File

@ -33,6 +33,9 @@ FfmpegInit()
{
av_log_set_callback(FfmpegLogCallback);
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100)
/* deprecated as of FFmpeg 4.0 */
av_register_all();
#endif
}