From 7b58d3256a8d2edd3893f893dbc5e5900ce21ee8 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 9 Mar 2023 21:11:08 +0100 Subject: [PATCH] Added a format exception to get around a clang-format bug. --- es-core/src/components/VideoFFmpegComponent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-core/src/components/VideoFFmpegComponent.cpp b/es-core/src/components/VideoFFmpegComponent.cpp index 516d416ff..6e7eaba19 100644 --- a/es-core/src/components/VideoFFmpegComponent.cpp +++ b/es-core/src/components/VideoFFmpegComponent.cpp @@ -503,10 +503,12 @@ bool VideoFFmpegComponent::setupAudioFilters() int returnValue {0}; std::string errorMessage(512, '\0'); const int outSampleRates[] {AudioManager::getInstance().sAudioFormat.freq, -1}; + // clang-format off const enum AVSampleFormat outSampleFormats[] { AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_NONE }; + // clang-format on mAFilterInputs = avfilter_inout_alloc(); mAFilterOutputs = avfilter_inout_alloc();