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
51c3861e
Commit
51c3861e
authored
Aug 04, 2008
by
Peter Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add D-Cinema audio muxer
Originally committed as revision 14531 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bb89b0bc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletion
+38
-1
Changelog
Changelog
+1
-0
Makefile
libavformat/Makefile
+1
-0
allformats.c
libavformat/allformats.c
+1
-1
daud.c
libavformat/daud.c
+35
-0
No files found.
Changelog
View file @
51c3861e
...
@@ -127,6 +127,7 @@ version <next>
...
@@ -127,6 +127,7 @@ version <next>
- Motion Pixels Video decoder
- Motion Pixels Video decoder
- Motion Pixels MVI demuxer
- Motion Pixels MVI demuxer
- removed animated GIF decoder/demuxer
- removed animated GIF decoder/demuxer
- D-Cinema audio muxer
version 0.4.9-pre1:
version 0.4.9-pre1:
...
...
libavformat/Makefile
View file @
51c3861e
...
@@ -33,6 +33,7 @@ OBJS-$(CONFIG_BFI_DEMUXER) += bfi.o
...
@@ -33,6 +33,7 @@ OBJS-$(CONFIG_BFI_DEMUXER) += bfi.o
OBJS-$(CONFIG_C93_DEMUXER)
+=
c93.o
vocdec.o
voc.o
OBJS-$(CONFIG_C93_DEMUXER)
+=
c93.o
vocdec.o
voc.o
OBJS-$(CONFIG_CRC_MUXER)
+=
crcenc.o
OBJS-$(CONFIG_CRC_MUXER)
+=
crcenc.o
OBJS-$(CONFIG_DAUD_DEMUXER)
+=
daud.o
OBJS-$(CONFIG_DAUD_DEMUXER)
+=
daud.o
OBJS-$(CONFIG_DAUD_MUXER)
+=
daud.o
OBJS-$(CONFIG_DIRAC_DEMUXER)
+=
raw.o
OBJS-$(CONFIG_DIRAC_DEMUXER)
+=
raw.o
OBJS-$(CONFIG_DIRAC_MUXER)
+=
raw.o
OBJS-$(CONFIG_DIRAC_MUXER)
+=
raw.o
OBJS-$(CONFIG_DSICIN_DEMUXER)
+=
dsicin.o
OBJS-$(CONFIG_DSICIN_DEMUXER)
+=
dsicin.o
...
...
libavformat/allformats.c
View file @
51c3861e
...
@@ -68,7 +68,7 @@ void av_register_all(void)
...
@@ -68,7 +68,7 @@ void av_register_all(void)
REGISTER_DEMUXER
(
BFI
,
bfi
);
REGISTER_DEMUXER
(
BFI
,
bfi
);
REGISTER_DEMUXER
(
C93
,
c93
);
REGISTER_DEMUXER
(
C93
,
c93
);
REGISTER_MUXER
(
CRC
,
crc
);
REGISTER_MUXER
(
CRC
,
crc
);
REGISTER_
DEMUXER
(
DAUD
,
daud
);
REGISTER_
MUXDEMUX
(
DAUD
,
daud
);
REGISTER_MUXDEMUX
(
DIRAC
,
dirac
);
REGISTER_MUXDEMUX
(
DIRAC
,
dirac
);
REGISTER_DEMUXER
(
DSICIN
,
dsicin
);
REGISTER_DEMUXER
(
DSICIN
,
dsicin
);
REGISTER_MUXDEMUX
(
DTS
,
dts
);
REGISTER_MUXDEMUX
(
DTS
,
dts
);
...
...
libavformat/daud.c
View file @
51c3861e
...
@@ -47,6 +47,24 @@ static int daud_packet(AVFormatContext *s, AVPacket *pkt) {
...
@@ -47,6 +47,24 @@ static int daud_packet(AVFormatContext *s, AVPacket *pkt) {
return
ret
;
return
ret
;
}
}
static
int
daud_write_header
(
struct
AVFormatContext
*
s
)
{
AVCodecContext
*
codec
=
s
->
streams
[
0
]
->
codec
;
if
(
codec
->
channels
!=
6
||
codec
->
sample_rate
!=
96000
)
return
-
1
;
return
0
;
}
static
int
daud_write_packet
(
struct
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
put_be16
(
s
->
pb
,
pkt
->
size
);
put_be16
(
s
->
pb
,
0x8010
);
// unknown
put_buffer
(
s
->
pb
,
pkt
->
data
,
pkt
->
size
);
put_flush_packet
(
s
->
pb
);
return
0
;
}
#if CONFIG_DAUD_DEMUXER
AVInputFormat
daud_demuxer
=
{
AVInputFormat
daud_demuxer
=
{
"daud"
,
"daud"
,
NULL_IF_CONFIG_SMALL
(
"D-Cinema audio format"
),
NULL_IF_CONFIG_SMALL
(
"D-Cinema audio format"
),
...
@@ -58,3 +76,20 @@ AVInputFormat daud_demuxer = {
...
@@ -58,3 +76,20 @@ AVInputFormat daud_demuxer = {
NULL
,
NULL
,
.
extensions
=
"302"
,
.
extensions
=
"302"
,
};
};
#endif
#ifdef CONFIG_DAUD_MUXER
AVOutputFormat
daud_muxer
=
{
"daud"
,
NULL_IF_CONFIG_SMALL
(
"D-Cinema audio format"
),
NULL
,
"302"
,
0
,
CODEC_ID_PCM_S24DAUD
,
CODEC_ID_NONE
,
daud_write_header
,
daud_write_packet
,
.
flags
=
AVFMT_NOTIMESTAMPS
,
};
#endif
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