diff options
author | Jan Ekström <jeebjp@gmail.com> | 2023-02-04 21:26:01 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2023-03-05 23:58:04 +0200 |
commit | 912ac82a3c769792ad992534f3df9b0a549ff827 (patch) | |
tree | db45c09ca0fb9bbef64a72abad09fdead0850e9a | |
parent | adca877acb930faf1a5d686af93b9f657cebf1b5 (diff) |
avformat/mov: base pcmC endianness on just the LSB
As per 23003-5:2020, the rest of the bits are reserved, and thus
in the future they may be utilized for something else.
Quote:
format_flags is a field of flags that modify the default PCM sample format.
Undefined flags are reserved and shall be zero. The following flag is defined:
0x01 indicates little-endian format. If not present, big-endian format is used.
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index cdd44a9e44..a9911c0f79 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1608,7 +1608,7 @@ static int mov_read_pcmc(MOVContext *c, AVIOContext *pb, MOVAtom atom) } format_flags = avio_r8(pb); - if (format_flags == 1) // indicates little-endian format. If not present, big-endian format is used + if (format_flags & 1) // indicates little-endian format. If not present, big-endian format is used set_last_stream_little_endian(c->fc); return 0; |