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
e2741132
Commit
e2741132
authored
Jun 19, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/cafenc: Allow QDMC muxing.
parent
5f5a97dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
caf.c
libavformat/caf.c
+1
-1
cafenc.c
libavformat/cafenc.c
+2
-1
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/caf.c
View file @
e2741132
...
...
@@ -55,7 +55,7 @@ const AVCodecTag ff_codec_caf_tags[] = {
{
AV_CODEC_ID_PCM_MULAW
,
MKTAG
(
'u'
,
'l'
,
'a'
,
'w'
)
},
{
AV_CODEC_ID_QCELP
,
MKTAG
(
'Q'
,
'c'
,
'l'
,
'p'
)
},
{
AV_CODEC_ID_QDM2
,
MKTAG
(
'Q'
,
'D'
,
'M'
,
'2'
)
},
{
AV_CODEC_ID_QDM
2
,
MKTAG
(
'Q'
,
'D'
,
'M'
,
'C'
)
},
{
AV_CODEC_ID_QDM
C
,
MKTAG
(
'Q'
,
'D'
,
'M'
,
'C'
)
},
/* currently unsupported codecs */
/*{ AC-3 over S/PDIF MKTAG('c','a','c','3') },*/
/*{ MPEG4CELP MKTAG('c','e','l','p') },*/
...
...
libavformat/cafenc.c
View file @
e2741132
...
...
@@ -87,6 +87,7 @@ static uint32_t samples_per_packet(enum AVCodecID codec_id, int channels, int bl
case
AV_CODEC_ID_AC3
:
return
1536
;
case
AV_CODEC_ID_QDM2
:
case
AV_CODEC_ID_QDMC
:
return
2048
*
channels
;
case
AV_CODEC_ID_ALAC
:
return
4096
;
...
...
@@ -169,7 +170,7 @@ static int caf_write_header(AVFormatContext *s)
avio_wb16
(
pb
,
0x81FF
);
/* Mode set (all modes for AMR_NB) */
avio_w8
(
pb
,
0x00
);
/* Mode change period (no restriction) */
avio_w8
(
pb
,
0x01
);
/* Frames per sample */
}
else
if
(
par
->
codec_id
==
AV_CODEC_ID_QDM2
)
{
}
else
if
(
par
->
codec_id
==
AV_CODEC_ID_QDM2
||
par
->
codec_id
==
AV_CODEC_ID_QDMC
)
{
ffio_wfourcc
(
pb
,
"kuki"
);
avio_wb64
(
pb
,
par
->
extradata_size
);
avio_write
(
pb
,
par
->
extradata
,
par
->
extradata_size
);
...
...
libavformat/version.h
View file @
e2741132
...
...
@@ -33,7 +33,7 @@
// Also please add any ticket numbers that you belive might regress here
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 38
#define LIBAVFORMAT_VERSION_MICRO 10
0
#define LIBAVFORMAT_VERSION_MICRO 10
1
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
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