Skip to content

Commit 977332e

Browse files
committed
src/scan.c: Only call av_register_all() if using libavformat < 58.9.100
This function is deprecated. Thanks to Leigh Scott for suggesting this patch.
1 parent 8e86193 commit 977332e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ int scan_init(unsigned nb_files) {
6969
* It is now useless
7070
* https://github.com/FFmpeg/FFmpeg/blob/70d25268c21cbee5f08304da95be1f647c630c15/doc/APIchanges#L86
7171
*/
72-
if (avformat_version() < AV_VERSION_INT(58,9,100))
72+
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58,9,100)
7373
av_register_all();
74-
74+
#endif
7575
av_log_set_callback(scan_av_log);
7676

7777
scan_nb_files = nb_files;

0 commit comments

Comments
 (0)