]> git.vomp.tv Git - vompclient.git/commitdiff
Fixes for compilation on Raspbian Buster
authorChris Tallon <chris@vomp.tv>
Sat, 17 Aug 2019 14:47:20 +0000 (15:47 +0100)
committerChris Tallon <chris@vomp.tv>
Sat, 17 Aug 2019 14:47:20 +0000 (15:47 +0100)
audioomx.cc

index a68296a733823ad87872cd9b195ef747170314f5..b3cf7a9f53f373da1be6d7245b14d47aa90cf978 100644 (file)
@@ -819,7 +819,11 @@ int AudioOMX::InitDecoderLibAV()
                return 0;
        }
 
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 34, 1)
+       ac3codec_context_libav->flags |= AV_CODEC_FLAG_TRUNCATED;
+#else
        ac3codec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
+#endif
 
 #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)
        ac3codec_context_libav->request_channel_layout=2;
@@ -840,7 +844,12 @@ int AudioOMX::InitDecoderLibAV()
                return 0;
        }
 
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 34, 1)
+       aaclatmcodec_context_libav->flags |= AV_CODEC_FLAG_TRUNCATED;
+#else
        aaclatmcodec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
+#endif
+
 #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)
        aaclatmcodec_context_libav->request_channel_layout=2;
 #else
@@ -862,7 +871,12 @@ int AudioOMX::InitDecoderLibAV()
                return 0;
        }
 
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 34, 1)
+       mp23codec_context_libav->flags |= AV_CODEC_FLAG_TRUNCATED;
+#else
        mp23codec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
+#endif
+
 #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)
        mp23codec_context_libav->request_channel_layout=2;
 #else