Skip to content

Commit 33f970b

Browse files
committed
Handle 'twos' in addition to 'sowt' encoding
'twos' has been showing up in encoded files coming from various Apple products.
1 parent 9547dbc commit 33f970b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/flac/encode.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ static FLAC__bool get_sample_info_aiff(EncoderSession *e, encode_options_t optio
655655
return false;
656656
if(xx == 0x736F7774) /* "sowt" */
657657
e->info.is_big_endian = false;
658+
else if (xx == 0x74776F73) /* "twos" */
659+
; /* default to big-endian */
658660
else if(xx == 0x4E4F4E45) /* "NONE" */
659661
; /* nothing to do, we already default to big-endian */
660662
else {

0 commit comments

Comments
 (0)