Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
464310c1
Commit
464310c1
authored
Apr 03, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: add siren audio decoder
parent
26ae9c9f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
790 additions
and
1 deletion
+790
-1
Changelog
Changelog
+1
-0
Makefile
libavcodec/Makefile
+1
-0
allcodecs.c
libavcodec/allcodecs.c
+1
-0
avcodec.h
libavcodec/avcodec.h
+1
-0
codec_desc.c
libavcodec/codec_desc.c
+7
-0
siren.c
libavcodec/siren.c
+773
-0
version.h
libavcodec/version.h
+1
-1
vivo.c
libavformat/vivo.c
+5
-0
No files found.
Changelog
View file @
464310c1
...
...
@@ -37,6 +37,7 @@ version <next>:
- afirsrc audio filter source
- pad_opencl filter
- CDToons video decoder
- siren audio decoder
version 4.2:
...
...
libavcodec/Makefile
View file @
464310c1
...
...
@@ -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
...
...
libavcodec/allcodecs.c
View file @
464310c1
...
...
@@ -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
;
...
...
libavcodec/avcodec.h
View file @
464310c1
...
...
@@ -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.
...
...
libavcodec/codec_desc.c
View file @
464310c1
...
...
@@ -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 */
{
...
...
libavcodec/siren.c
0 → 100644
View file @
464310c1
This diff is collapsed.
Click to expand it.
libavcodec/version.h
View file @
464310c1
...
...
@@ -28,7 +28,7 @@
#include "libavutil/version.h"
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 7
0
#define LIBAVCODEC_VERSION_MINOR 7
1
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
...
libavformat/vivo.c
View file @
464310c1
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment