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
7548831c
Commit
7548831c
authored
Jul 12, 2012
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libfdk-aac: Allow setting the encoder bandwidth/cutoff frequency
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
0da29727
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
libfdk-aacenc.c
libavcodec/libfdk-aacenc.c
+9
-0
No files found.
libavcodec/libfdk-aacenc.c
View file @
7548831c
...
...
@@ -230,6 +230,15 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
goto
error
;
}
if
(
avctx
->
cutoff
>
0
)
{
if
((
err
=
aacEncoder_SetParam
(
s
->
handle
,
AACENC_BANDWIDTH
,
avctx
->
cutoff
))
!=
AACENC_OK
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unable to set the encoder bandwith to %d: %s
\n
"
,
avctx
->
cutoff
,
aac_get_error
(
err
));
goto
error
;
}
}
if
((
err
=
aacEncEncode
(
s
->
handle
,
NULL
,
NULL
,
NULL
,
NULL
))
!=
AACENC_OK
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unable to initialize the encoder: %s
\n
"
,
aac_get_error
(
err
));
...
...
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