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
e64edeed
Commit
e64edeed
authored
Nov 27, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacenc: make the aac coder user choosable.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1b122387
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
aacenc.c
libavcodec/aacenc.c
+2
-1
aacenc.h
libavcodec/aacenc.h
+1
-0
No files found.
libavcodec/aacenc.c
View file @
e64edeed
...
...
@@ -224,7 +224,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
grouping
[
i
]
=
s
->
chan_map
[
i
+
1
]
==
TYPE_CPE
;
ff_psy_init
(
&
s
->
psy
,
avctx
,
2
,
sizes
,
lengths
,
s
->
chan_map
[
0
],
grouping
);
s
->
psypp
=
ff_psy_preprocess_init
(
avctx
);
s
->
coder
=
&
ff_aac_coders
[
2
];
s
->
coder
=
&
ff_aac_coders
[
s
->
options
.
aac_coder
];
s
->
lambda
=
avctx
->
global_quality
?
avctx
->
global_quality
:
120
;
...
...
@@ -690,6 +690,7 @@ static const AVOption aacenc_options[] = {
{
"auto"
,
"Selected by the Encoder"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
-
1
},
INT_MIN
,
INT_MAX
,
AACENC_FLAGS
,
"stereo_mode"
},
{
"ms_off"
,
"Disable Mid/Side coding"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
0
},
INT_MIN
,
INT_MAX
,
AACENC_FLAGS
,
"stereo_mode"
},
{
"ms_force"
,
"Force Mid/Side for the whole frame if possible"
,
0
,
AV_OPT_TYPE_CONST
,
{.
dbl
=
1
},
INT_MIN
,
INT_MAX
,
AACENC_FLAGS
,
"stereo_mode"
},
{
"aac_coder"
,
""
,
offsetof
(
AACEncContext
,
options
.
aac_coder
),
AV_OPT_TYPE_INT
,
{.
dbl
=
2
},
0
,
AAC_CODER_NB
-
1
,
AACENC_FLAGS
},
{
NULL
}
};
...
...
libavcodec/aacenc.h
View file @
e64edeed
...
...
@@ -34,6 +34,7 @@
typedef
struct
AACEncOptions
{
int
stereo_mode
;
int
aac_coder
;
}
AACEncOptions
;
struct
AACEncContext
;
...
...
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