forked from FFmpeg/FFmpeg
keep original codec/fourcc endianness, fix XDCAMHD.mov
Originally committed as revision 14506 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9184d53a03
commit
6b477e1b71
1 changed files with 3 additions and 1 deletions
|
@ -879,7 +879,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
||||||
if (st->codec->bits_per_sample == 8)
|
if (st->codec->bits_per_sample == 8)
|
||||||
st->codec->codec_id = CODEC_ID_PCM_S8;
|
st->codec->codec_id = CODEC_ID_PCM_S8;
|
||||||
else if (st->codec->bits_per_sample == 24)
|
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;
|
break;
|
||||||
/* set values for old format before stsd version 1 appeared */
|
/* set values for old format before stsd version 1 appeared */
|
||||||
case CODEC_ID_MACE3:
|
case CODEC_ID_MACE3:
|
||||||
|
|
Loading…
Add table
Reference in a new issue