changeset 4184:bc40129f13cc libavformat

only set le if value is 1, fix boom5.mov, issue #770
author bcoudurier
date Fri, 09 Jan 2009 22:13:37 +0000
parents 046a97603352
children 023976c45ae1
files mov.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Fri Jan 09 20:10:13 2009 +0000
+++ b/mov.c	Fri Jan 09 22:13:37 2009 +0000
@@ -575,7 +575,8 @@
     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;