From: Chris Tallon Date: Sat, 17 Aug 2019 15:37:27 +0000 (+0100) Subject: Don't call av_register_all() if deprecated X-Git-Tag: 0-5-1~15 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=9c14c1c5c9a6d0d5077d837ba71fa662754becf0;p=vompclient.git Don't call av_register_all() if deprecated --- 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);