[FFmpeg-cvslog] Fix some mov files with little endian audio (tickets 201 - 203).
Carl Eugen Hoyos
git at videolan.org
Tue May 17 01:59:06 CEST 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue May 17 01:17:27 2011 +0200| [d2549ba9df1a1aac8c0ae19bfca2c81e508ba02e] | committer: Carl Eugen Hoyos
Fix some mov files with little endian audio (tickets 201 - 203).
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2549ba9df1a1aac8c0ae19bfca2c81e508ba02e
---
libavformat/mov.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 745768f..a41b8ce 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) {
More information about the ffmpeg-cvslog
mailing list