[FFmpeg-devel] [PATCH] matroska: add DSD support
Takayuki 'January June' Suwa
jjsuwa.sys3175 at gmail.com
Mon Mar 6 10:00:46 EET 2017
this patch makes transporting several (low-bitrate to hi-res) music data more simpler.
almost major/defacto-std lossy/lossless audio codecs such as MP3, AAC, FLAC, etc. and now DSD can be muxed by the single way :)
global/per-stream metadata seems to be exported correctly.
---
libavformat/matroska.c | 2 ++
libavformat/matroskaenc.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index 6af667c..125a026 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -48,6 +48,8 @@ const CodecTags ff_mkv_codec_tags[]={
{"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S24LE},
{"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S32LE},
{"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_U8},
+ {"A_PDM/DSD/LSBF" , AV_CODEC_ID_DSD_LSBF},
+ {"A_PDM/DSD/MSBF" , AV_CODEC_ID_DSD_MSBF},
{"A_QUICKTIME/QDMC" , AV_CODEC_ID_QDMC},
{"A_QUICKTIME/QDM2" , AV_CODEC_ID_QDM2},
{"A_REAL/14_4" , AV_CODEC_ID_RA_144},
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 1605f0c..a9503f6 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2528,6 +2528,8 @@ static const AVCodecTag additional_audio_tags[] = {
{ AV_CODEC_ID_PCM_S16BE, 0xFFFFFFFF },
{ AV_CODEC_ID_PCM_S24BE, 0xFFFFFFFF },
{ AV_CODEC_ID_PCM_S32BE, 0xFFFFFFFF },
+ { AV_CODEC_ID_DSD_LSBF, 0xFFFFFFFF },
+ { AV_CODEC_ID_DSD_MSBF, 0xFFFFFFFF },
{ AV_CODEC_ID_QDMC, 0xFFFFFFFF },
{ AV_CODEC_ID_QDM2, 0xFFFFFFFF },
{ AV_CODEC_ID_RA_144, 0xFFFFFFFF },
More information about the ffmpeg-devel
mailing list