Commit 464310c1 authored by Paul B Mahol's avatar Paul B Mahol

avcodec: add siren audio decoder

parent 26ae9c9f
......@@ -37,6 +37,7 @@ version <next>:
- afirsrc audio filter source
- pad_opencl filter
- CDToons video decoder
- siren audio decoder
version 4.2:
......
......@@ -584,6 +584,7 @@ OBJS-$(CONFIG_SIPR_DECODER) += sipr.o acelp_pitch_delay.o \
celp_math.o acelp_vectors.o \
acelp_filters.o celp_filters.o \
sipr16k.o
OBJS-$(CONFIG_SIREN_DECODER) += siren.o
OBJS-$(CONFIG_SMACKAUD_DECODER) += smacker.o
OBJS-$(CONFIG_SMACKER_DECODER) += smacker.o
OBJS-$(CONFIG_SMC_DECODER) += smc.o
......
......@@ -474,6 +474,7 @@ extern AVCodec ff_sbc_encoder;
extern AVCodec ff_sbc_decoder;
extern AVCodec ff_shorten_decoder;
extern AVCodec ff_sipr_decoder;
extern AVCodec ff_siren_decoder;
extern AVCodec ff_smackaud_decoder;
extern AVCodec ff_sonic_encoder;
extern AVCodec ff_sonic_decoder;
......
......@@ -661,6 +661,7 @@ enum AVCodecID {
AV_CODEC_ID_HCOM,
AV_CODEC_ID_ACELP_KELVIN,
AV_CODEC_ID_MPEGH_3D_AUDIO,
AV_CODEC_ID_SIREN,
/* subtitle codecs */
AV_CODEC_ID_FIRST_SUBTITLE = 0x17000, ///< A dummy ID pointing at the start of subtitle codecs.
......
......@@ -3044,6 +3044,13 @@ static const AVCodecDescriptor codec_descriptors[] = {
.long_name = NULL_IF_CONFIG_SMALL("MPEG-H 3D Audio"),
.props = AV_CODEC_PROP_LOSSY,
},
{
.id = AV_CODEC_ID_SIREN,
.type = AVMEDIA_TYPE_AUDIO,
.name = "siren",
.long_name = NULL_IF_CONFIG_SMALL("Siren"),
.props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY,
},
/* subtitle codecs */
{
......
This diff is collapsed.
......@@ -28,7 +28,7 @@
#include "libavutil/version.h"
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 70
#define LIBAVCODEC_VERSION_MINOR 71
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
......
......@@ -231,6 +231,11 @@ static int vivo_read_header(AVFormatContext *s)
ast->codecpar->bits_per_coded_sample = 8;
ast->codecpar->block_align = 24;
ast->codecpar->bit_rate = 6400;
} else {
ast->codecpar->codec_id = AV_CODEC_ID_SIREN;
ast->codecpar->bits_per_coded_sample = 16;
ast->codecpar->block_align = 40;
ast->codecpar->bit_rate = 6400;
}
ast->start_time = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment