]> git.vomp.tv Git - vompclient.git/commitdiff
Don't call av_register_all() if deprecated
authorChris Tallon <chris@vomp.tv>
Sat, 17 Aug 2019 15:37:27 +0000 (16:37 +0100)
committerChris Tallon <chris@vomp.tv>
Sat, 17 Aug 2019 15:37:27 +0000 (16:37 +0100)
audioomx.cc

index b3cf7a9f53f373da1be6d7245b14d47aa90cf978..58c29cb0df2c1dcab9f5a3e532013b25a573c67d 100644 (file)
@@ -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);