summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-09 22:13:37 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-09 22:13:37 +0000
commitfa50a0276f4e03828e1250f6524b61ef48ca9d15 (patch)
treeff478c169b24c5986f6eed69a28ec2d917c719ae /libavformat/mov.c
parent65007a4fa029c04a7ef0fd8247c16b500de4a1c2 (diff)
only set le if value is 1, fix boom5.mov, issue #770
Originally committed as revision 16507 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 5ba83e4be8..c0c057a4bf 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -575,7 +575,8 @@ static int mov_read_enda(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
AVStream *st = c->fc->streams[c->fc->nb_streams-1];
int little_endian = get_be16(pb);
- if (little_endian) {
+ dprintf(c->fc, "enda %d\n", little_endian);
+ if (little_endian == 1) {
switch (st->codec->codec_id) {
case CODEC_ID_PCM_S24BE:
st->codec->codec_id = CODEC_ID_PCM_S24LE;