diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-17 01:17:27 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-17 01:17:27 +0200 |
commit | d2549ba9df1a1aac8c0ae19bfca2c81e508ba02e (patch) | |
tree | d788a58b38c7c5cf017c619e7fb4a9fe0e3895fe /libavformat | |
parent | e280a4da2ae6fd44f0079358ecc5aa08e388a5ed (diff) | |
download | ffmpeg-d2549ba9df1a1aac8c0ae19bfca2c81e508ba02e.tar.gz |
Fix some mov files with little endian audio (tickets 201 - 203).
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 745768f3b9..a41b8ce73d 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -718,7 +718,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) & 0xFF; av_dlog(c->fc, "enda %d\n", little_endian); if (little_endian == 1) { switch (st->codec->codec_id) { |