Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
4183:046a97603352 | 4184:bc40129f13cc |
---|---|
573 static int mov_read_enda(MOVContext *c, ByteIOContext *pb, MOVAtom atom) | 573 static int mov_read_enda(MOVContext *c, ByteIOContext *pb, MOVAtom atom) |
574 { | 574 { |
575 AVStream *st = c->fc->streams[c->fc->nb_streams-1]; | 575 AVStream *st = c->fc->streams[c->fc->nb_streams-1]; |
576 int little_endian = get_be16(pb); | 576 int little_endian = get_be16(pb); |
577 | 577 |
578 if (little_endian) { | 578 dprintf(c->fc, "enda %d\n", little_endian); |
579 if (little_endian == 1) { | |
579 switch (st->codec->codec_id) { | 580 switch (st->codec->codec_id) { |
580 case CODEC_ID_PCM_S24BE: | 581 case CODEC_ID_PCM_S24BE: |
581 st->codec->codec_id = CODEC_ID_PCM_S24LE; | 582 st->codec->codec_id = CODEC_ID_PCM_S24LE; |
582 break; | 583 break; |
583 case CODEC_ID_PCM_S32BE: | 584 case CODEC_ID_PCM_S32BE: |