[FFmpeg-devel] [PATCH]lavf/matroska: Support QDMC

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Mar 2 00:23:43 EET 2017


Hi!

Attached patch allows muxing and demuxing of QDMC in mkv.

Please comment, Carl Eugen
-------------- next part --------------
From 8d383886e19dbfd362497144fc9610ecdcedc144 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Wed, 1 Mar 2017 23:22:40 +0100
Subject: [PATCH] lavf/matroska: Support QDMC.

---
 libavformat/matroska.c    |    1 +
 libavformat/matroskaenc.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index fda96fb..248d7b5 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -48,6 +48,7 @@ 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_QUICKTIME/QDMC" , AV_CODEC_ID_QDMC},
     {"A_QUICKTIME/QDM2" , AV_CODEC_ID_QDM2},
     {"A_REAL/14_4"      , AV_CODEC_ID_RA_144},
     {"A_REAL/28_8"      , AV_CODEC_ID_RA_288},
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 7cb8893..21f6e08 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2528,6 +2528,7 @@ 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_QDMC,      0xFFFFFFFF },
     { AV_CODEC_ID_QDM2,      0xFFFFFFFF },
     { AV_CODEC_ID_RA_144,    0xFFFFFFFF },
     { AV_CODEC_ID_RA_288,    0xFFFFFFFF },
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list