aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-03-13 19:45:14 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-05-19 12:05:23 +0100
commit8ae4d4e117626313e0b7df746e82de84d00d160a (patch)
treee9a447f28971a972c8437860aa0d7db604aa4ace
parent2af720fe5f0418612a8fc26b0147a0e10414fcbe (diff)
downloadffmpeg-8ae4d4e117626313e0b7df746e82de84d00d160a.tar.gz
mov: Fix little endian audio detection
Set this field to TRUE if the audio component is to operate on little-endian data, and FALSE otherwise. However TRUE and FALSE are not defined. Since this flag is just a boolean, interpret all values except for 0 as little endian. Sample-Id: 64bit_FLOAT_Little_Endian.mov
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index d14dc7c745..60d171deb5 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -864,7 +864,7 @@ static int mov_read_enda(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
- little_endian = avio_rb16(pb);
+ little_endian = !!avio_rb16(pb);
av_dlog(c->fc, "enda %d\n", little_endian);
if (little_endian == 1) {
switch (st->codec->codec_id) {