diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-13 19:45:14 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-17 13:34:23 +0000 |
commit | 423f5d50e499ab972f507115700c8f31ed8993e4 (patch) | |
tree | 0a20cecd1a3445f69cbf9ad467ce3c6340420a62 /libavformat | |
parent | cdce9e8025fff1dee2fd3d6bc28aebc0a330c5a0 (diff) | |
download | ffmpeg-423f5d50e499ab972f507115700c8f31ed8993e4.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
Diffstat (limited to 'libavformat')
-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 df7357f30e..45c843f53e 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -944,7 +944,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) { |