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
e72d6fa0
Commit
e72d6fa0
authored
Jun 28, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Move MP2 muxer declaration away from MP3 muxer code
The MP2 muxer uses none of the code of the MP3 muxer.
parent
67cb2c0f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
18 deletions
+14
-18
Makefile
libavcodec/Makefile
+0
-1
Makefile
libavformat/Makefile
+1
-1
mp3enc.c
libavformat/mp3enc.c
+0
-16
rawenc.c
libavformat/rawenc.c
+13
-0
No files found.
libavcodec/Makefile
View file @
e72d6fa0
...
...
@@ -649,7 +649,6 @@ OBJS-$(CONFIG_MATROSKA_AUDIO_MUXER) += mpeg4audio.o \
flac.o
flacdata.o
OBJS-$(CONFIG_MATROSKA_MUXER)
+=
flac.o
flacdata.o
OBJS-$(CONFIG_MOV_DEMUXER)
+=
ac3tab.o
OBJS-$(CONFIG_MP2_MUXER)
+=
mpegaudiodata.o
mpegaudiodecheader.o
OBJS-$(CONFIG_MP3_MUXER)
+=
mpegaudiodata.o
mpegaudiodecheader.o
OBJS-$(CONFIG_MPEGTS_MUXER)
+=
mpeg4audio.o
OBJS-$(CONFIG_NUT_MUXER)
+=
mpegaudiodata.o
...
...
libavformat/Makefile
View file @
e72d6fa0
...
...
@@ -196,7 +196,7 @@ OBJS-$(CONFIG_MMF_MUXER) += mmf.o
OBJS-$(CONFIG_MOV_DEMUXER)
+=
mov.o
mov_chan.o
replaygain.o
OBJS-$(CONFIG_MOV_MUXER)
+=
movenc.o
avc.o
hevc.o
\
movenchint.o
mov_chan.o
OBJS-$(CONFIG_MP2_MUXER)
+=
mp3enc.o
rawenc.o
id3v2
enc.o
OBJS-$(CONFIG_MP2_MUXER)
+=
raw
enc.o
OBJS-$(CONFIG_MP3_DEMUXER)
+=
mp3dec.o
replaygain.o
OBJS-$(CONFIG_MP3_MUXER)
+=
mp3enc.o
rawenc.o
id3v2enc.o
OBJS-$(CONFIG_MPC_DEMUXER)
+=
mpc.o
apetag.o
img2.o
...
...
libavformat/mp3enc.c
View file @
e72d6fa0
...
...
@@ -432,21 +432,6 @@ static int mp3_write_trailer(struct AVFormatContext *s)
return
0
;
}
#if CONFIG_MP2_MUXER
AVOutputFormat
ff_mp2_muxer
=
{
.
name
=
"mp2"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP2 (MPEG audio layer 2)"
),
.
mime_type
=
"audio/mpeg"
,
.
extensions
=
"mp2,m2a,mpa"
,
.
audio_codec
=
AV_CODEC_ID_MP2
,
.
video_codec
=
AV_CODEC_ID_NONE
,
.
write_packet
=
ff_raw_write_packet
,
.
flags
=
AVFMT_NOTIMESTAMPS
,
};
#endif
#if CONFIG_MP3_MUXER
static
const
AVOption
options
[]
=
{
{
"id3v2_version"
,
"Select ID3v2 version to write. Currently 3 and 4 are supported."
,
offsetof
(
MP3Context
,
id3v2_version
),
AV_OPT_TYPE_INT
,
{.
i64
=
4
},
0
,
4
,
AV_OPT_FLAG_ENCODING_PARAM
},
...
...
@@ -589,4 +574,3 @@ AVOutputFormat ff_mp3_muxer = {
.
flags
=
AVFMT_NOTIMESTAMPS
,
.
priv_class
=
&
mp3_muxer_class
,
};
#endif
libavformat/rawenc.c
View file @
e72d6fa0
...
...
@@ -231,6 +231,19 @@ AVOutputFormat ff_mlp_muxer = {
};
#endif
#if CONFIG_MP2_MUXER
AVOutputFormat
ff_mp2_muxer
=
{
.
name
=
"mp2"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP2 (MPEG audio layer 2)"
),
.
mime_type
=
"audio/mpeg"
,
.
extensions
=
"mp2,m2a,mpa"
,
.
audio_codec
=
AV_CODEC_ID_MP2
,
.
video_codec
=
AV_CODEC_ID_NONE
,
.
write_packet
=
ff_raw_write_packet
,
.
flags
=
AVFMT_NOTIMESTAMPS
,
};
#endif
#if CONFIG_MPEG1VIDEO_MUXER
AVOutputFormat
ff_mpeg1video_muxer
=
{
.
name
=
"mpeg1video"
,
...
...
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