From 33f970b452771f031cbe45050c3b0e00551d9557 Mon Sep 17 00:00:00 2001 From: Eric Lyons <67806903+voxsystems@users.noreply.github.com> Date: Tue, 9 Sep 2025 06:32:03 -0700 Subject: [PATCH] Handle 'twos' in addition to 'sowt' encoding 'twos' has been showing up in encoded files coming from various Apple products. --- src/flac/encode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flac/encode.c b/src/flac/encode.c index 61eca0bb77..3e79ad353b 100644 --- a/src/flac/encode.c +++ b/src/flac/encode.c @@ -655,6 +655,8 @@ static FLAC__bool get_sample_info_aiff(EncoderSession *e, encode_options_t optio return false; if(xx == 0x736F7774) /* "sowt" */ e->info.is_big_endian = false; + else if (xx == 0x74776F73) /* "twos" */ + ; /* default to big-endian */ else if(xx == 0x4E4F4E45) /* "NONE" */ ; /* nothing to do, we already default to big-endian */ else {