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
f2962ac8
Commit
f2962ac8
authored
May 16, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write channel_layout for multichannel aif files.
parent
6d721f71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Makefile
libavformat/Makefile
+1
-1
aiffenc.c
libavformat/aiffenc.c
+7
-0
No files found.
libavformat/Makefile
View file @
f2962ac8
...
@@ -24,7 +24,7 @@ OBJS-$(CONFIG_AC3_MUXER) += rawenc.o
...
@@ -24,7 +24,7 @@ OBJS-$(CONFIG_AC3_MUXER) += rawenc.o
OBJS-$(CONFIG_ADTS_MUXER)
+=
adtsenc.o
OBJS-$(CONFIG_ADTS_MUXER)
+=
adtsenc.o
OBJS-$(CONFIG_AEA_DEMUXER)
+=
aea.o
pcm.o
OBJS-$(CONFIG_AEA_DEMUXER)
+=
aea.o
pcm.o
OBJS-$(CONFIG_AIFF_DEMUXER)
+=
aiffdec.o
riff.o
pcm.o
isom.o
OBJS-$(CONFIG_AIFF_DEMUXER)
+=
aiffdec.o
riff.o
pcm.o
isom.o
OBJS-$(CONFIG_AIFF_MUXER)
+=
aiffenc.o
riff.o
OBJS-$(CONFIG_AIFF_MUXER)
+=
aiffenc.o
riff.o
isom.o
OBJS-$(CONFIG_AMR_DEMUXER)
+=
amr.o
OBJS-$(CONFIG_AMR_DEMUXER)
+=
amr.o
OBJS-$(CONFIG_AMR_MUXER)
+=
amr.o
OBJS-$(CONFIG_AMR_MUXER)
+=
amr.o
OBJS-$(CONFIG_ANM_DEMUXER)
+=
anm.o
OBJS-$(CONFIG_ANM_DEMUXER)
+=
anm.o
...
...
libavformat/aiffenc.c
View file @
f2962ac8
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include "avformat.h"
#include "avformat.h"
#include "aiff.h"
#include "aiff.h"
#include "avio_internal.h"
#include "avio_internal.h"
#include "isom.h"
typedef
struct
{
typedef
struct
{
int64_t
form
;
int64_t
form
;
...
@@ -61,6 +62,12 @@ static int aiff_write_header(AVFormatContext *s)
...
@@ -61,6 +62,12 @@ static int aiff_write_header(AVFormatContext *s)
avio_wb32
(
pb
,
0xA2805140
);
avio_wb32
(
pb
,
0xA2805140
);
}
}
if
(
enc
->
channels
>
2
&&
enc
->
channel_layout
)
{
ffio_wfourcc
(
pb
,
"CHAN"
);
avio_wb32
(
pb
,
12
);
ff_mov_write_chan
(
pb
,
enc
->
channel_layout
);
}
/* Common chunk */
/* Common chunk */
ffio_wfourcc
(
pb
,
"COMM"
);
ffio_wfourcc
(
pb
,
"COMM"
);
avio_wb32
(
pb
,
aifc
?
24
:
18
);
/* size */
avio_wb32
(
pb
,
aifc
?
24
:
18
);
/* size */
...
...
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