[FFmpeg-devel] [PATCH 1/2] avcodec: add AC-4 codec id and description
Paul B Mahol
onemda at gmail.com
Sun Feb 17 22:25:02 EET 2019
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/avcodec.h | 1 +
libavcodec/codec_desc.c | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 0ce22ec4fa..13eb241c77 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -648,6 +648,7 @@ enum AVCodecID {
AV_CODEC_ID_SBC,
AV_CODEC_ID_ATRAC9,
AV_CODEC_ID_HCOM,
+ AV_CODEC_ID_AC4,
/* subtitle codecs */
AV_CODEC_ID_FIRST_SUBTITLE = 0x17000, ///< A dummy ID pointing at the start of subtitle codecs.
diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
index a3de8e1c2b..5fcad0e044 100644
--- a/libavcodec/codec_desc.c
+++ b/libavcodec/codec_desc.c
@@ -2957,6 +2957,13 @@ static const AVCodecDescriptor codec_descriptors[] = {
.long_name = NULL_IF_CONFIG_SMALL("HCOM Audio"),
.props = AV_CODEC_PROP_LOSSY,
},
+ {
+ .id = AV_CODEC_ID_AC4,
+ .type = AVMEDIA_TYPE_AUDIO,
+ .name = "ac4",
+ .long_name = NULL_IF_CONFIG_SMALL("AC-4"),
+ .props = AV_CODEC_PROP_LOSSY,
+ },
/* subtitle codecs */
{
--
2.17.1
More information about the ffmpeg-devel
mailing list