changeset 3621:0415fc41780a libavformat

keep original codec/fourcc endianness, fix XDCAMHD.mov
author bcoudurier
date Sat, 02 Aug 2008 03:43:36 +0000
parents a52f6dd66490
children ab0641ec543b
files mov.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: