projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9184d53
)
keep original codec/fourcc endianness, fix XDCAMHD.mov
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 2 Aug 2008 03:43:36 +0000
(
03:43
+0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Sat, 2 Aug 2008 03:43:36 +0000
(
03:43
+0000)
Originally committed as revision 14506 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
551eca9
..
4d156c7
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-879,7
+879,9
@@
static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
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: