From 9c14c1c5c9a6d0d5077d837ba71fa662754becf0 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 17 Aug 2019 16:37:27 +0100 Subject: [PATCH] Don't call av_register_all() if deprecated --- audioomx.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/audioomx.cc b/audioomx.cc index b3cf7a9..58c29cb 100644 --- a/audioomx.cc +++ b/audioomx.cc @@ -98,9 +98,10 @@ int AudioOMX::init(UCHAR tstreamType) { decompress_buffer=(UCHAR*)malloc(decompress_buffer_size); decompress_buffer_filled=0; - - +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100) av_register_all(); +#endif + av_log_set_flags(AV_LOG_SKIP_REPEATED); ac3codec_libav = avcodec_find_decoder(AV_CODEC_ID_AC3); -- 2.39.2