From b2ab8841d2d37296db317a1174392ed041faed97 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 24 Sep 2022 16:31:43 -0700 Subject: Fix an ambisonic layout check in alffplay --- examples/alffplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp index ec40f89a..ef7aa89d 100644 --- a/examples/alffplay.cpp +++ b/examples/alffplay.cpp @@ -1099,7 +1099,7 @@ int AudioState::handler() mFormat = AL_FORMAT_MONO16; } } - else if(mCodecCtx->ch_layout.order == AV_CHANNEL_ORDER_NATIVE + else if(mCodecCtx->ch_layout.order == AV_CHANNEL_ORDER_AMBISONIC && alIsExtensionPresent("AL_EXT_BFORMAT")) { auto order = static_cast(std::sqrt(mCodecCtx->ch_layout.nb_channels)) - 1; -- cgit v1.2.3