[FFmpeg-devel] [PATCH]Fix 32bit pcm audio in mov
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Sep 29 02:01:25 CEST 2014
Hi!
Attached patch fixes decoding 32bit pcm audio in mov as written by the
Convergent Design's Odyssey 7Q recorder.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ae48c02..8070b4d 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:
More information about the ffmpeg-devel
mailing list