Mercurial > libavformat.hg
diff mov.c @ 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 | e536841c1aeb |
| children | a48a6a414dfe |
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;
