diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-10-02 10:04:13 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-10-02 10:04:43 +0200 |
commit | 81cee700f781b80027f187ed4e645213ee315372 (patch) | |
tree | fa87efeadd9abb29e594fbb1c93a727c5ebc874f /libavformat | |
parent | 6efe4137ce39fef35e3e7f274160958acdac7581 (diff) | |
download | ffmpeg-81cee700f781b80027f187ed4e645213ee315372.tar.gz |
Support decoding 32bit pcm audio in mov.
Such files are written by Convergent Design's Odyssey 7Q recorder.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index ae48c02287..8070b4d0c3 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1422,6 +1422,10 @@ static void mov_parse_stsd_audio(MOVContext *c, AVIOContext *pb, st->codec->codec_id = st->codec->codec_id == AV_CODEC_ID_PCM_S16BE ? AV_CODEC_ID_PCM_S24BE : AV_CODEC_ID_PCM_S24LE; + else if (st->codec->bits_per_coded_sample == 32) + st->codec->codec_id = + st->codec->codec_id == AV_CODEC_ID_PCM_S16BE ? + AV_CODEC_ID_PCM_S32BE : AV_CODEC_ID_PCM_S32LE; break; /* set values for old format before stsd version 1 appeared */ case AV_CODEC_ID_MACE3: |