[FFmpeg-devel] [PATCH 08/10] avformat/riff: enable DoP muxing
Peter Ross
pross at xvid.org
Tue May 6 14:39:18 CEST 2014
Signed-off-by: Peter Ross <pross at xvid.org>
---
libavformat/riff.c | 1 +
libavformat/riffenc.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 735dea0..734d437 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -368,6 +368,7 @@ const AVCodecTag ff_codec_wav_tags[] = {
{ AV_CODEC_ID_PCM_U8, 0x0001 },
{ AV_CODEC_ID_PCM_S24LE, 0x0001 },
{ AV_CODEC_ID_PCM_S32LE, 0x0001 },
+ { AV_CODEC_ID_DOP_S24LE, 0x0001 },
{ AV_CODEC_ID_ADPCM_MS, 0x0002 },
{ AV_CODEC_ID_PCM_F32LE, 0x0003 },
/* must come after f32le in this list */
diff --git a/libavformat/riffenc.c b/libavformat/riffenc.c
index 66c0ff2..d9526fb 100644
--- a/libavformat/riffenc.c
+++ b/libavformat/riffenc.c
@@ -120,7 +120,8 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc, int flags)
blkalign = enc->block_align;
} else
blkalign = bps * enc->channels / av_gcd(8, bps);
- if (enc->codec_id == AV_CODEC_ID_PCM_U8 ||
+ if (enc->codec_id == AV_CODEC_ID_DOP_S24LE ||
+ enc->codec_id == AV_CODEC_ID_PCM_U8 ||
enc->codec_id == AV_CODEC_ID_PCM_S24LE ||
enc->codec_id == AV_CODEC_ID_PCM_S32LE ||
enc->codec_id == AV_CODEC_ID_PCM_F32LE ||
--
1.8.3.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140506/d2fce5ae/attachment.asc>
More information about the ffmpeg-devel
mailing list