# HG changeset patch # User bcoudurier # Date 1217648616 0 # Node ID 0415fc41780a56ba2eed620990a98d89499234d0 # Parent a52f6dd66490d1f91b9f23eea35e0ce2b9cb8d1d keep original codec/fourcc endianness, fix XDCAMHD.mov diff -r a52f6dd66490 -r 0415fc41780a mov.c --- a/mov.c Sat Aug 02 03:40:13 2008 +0000 +++ b/mov.c Sat Aug 02 03:43:36 2008 +0000 @@ -879,7 +879,9 @@ if (st->codec->bits_per_sample == 8) st->codec->codec_id = CODEC_ID_PCM_S8; else if (st->codec->bits_per_sample == 24) - st->codec->codec_id = CODEC_ID_PCM_S24BE; + st->codec->codec_id = + st->codec->codec_id == CODEC_ID_PCM_S16BE ? + CODEC_ID_PCM_S24BE : CODEC_ID_PCM_S24LE; break; /* set values for old format before stsd version 1 appeared */ case CODEC_ID_MACE3: