Skip to content

Commit

Permalink
src/scan.c: Only call av_register_all() if using libavformat < 58.9.100
Browse files Browse the repository at this point in the history
This function is deprecated.

Thanks to Leigh Scott for suggesting this patch.
  • Loading branch information
hughmcmaster committed Sep 1, 2022
1 parent 8e86193 commit 977332e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ int scan_init(unsigned nb_files) {
* It is now useless
* https://github.com/FFmpeg/FFmpeg/blob/70d25268c21cbee5f08304da95be1f647c630c15/doc/APIchanges#L86
*/
if (avformat_version() < AV_VERSION_INT(58,9,100))
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58,9,100)
av_register_all();

#endif
av_log_set_callback(scan_av_log);

scan_nb_files = nb_files;
Expand Down

0 comments on commit 977332e

Please sign in to comment.