aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-05-17 01:17:27 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-05-17 01:17:27 +0200
commitd2549ba9df1a1aac8c0ae19bfca2c81e508ba02e (patch)
treed788a58b38c7c5cf017c619e7fb4a9fe0e3895fe /libavformat
parente280a4da2ae6fd44f0079358ecc5aa08e388a5ed (diff)
downloadffmpeg-d2549ba9df1a1aac8c0ae19bfca2c81e508ba02e.tar.gz
Fix some mov files with little endian audio (tickets 201 - 203).
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
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) {