Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
1aa8f6ce
Commit
1aa8f6ce
authored
Mar 11, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of AAC profile selection.
parent
ba014d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+7
-3
No files found.
modules/codec/ffmpeg/encoder.c
View file @
1aa8f6ce
...
...
@@ -386,8 +386,10 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
else
if
(
!
strncmp
(
val
.
psz_string
,
"ltp"
,
3
)
)
p_sys
->
i_aac_profile
=
FF_PROFILE_AAC_LTP
;
else
{
msg_Warn
(
p_enc
,
"unknown AAC profile requested"
);
p_sys
->
i_aac_profile
=
FF_PROFILE_UNKNOWN
;
msg_Info
(
p_enc
,
"AAC profile %s"
,
val
.
psz_string
);
}
}
if
(
val
.
psz_string
)
free
(
val
.
psz_string
);
...
...
@@ -556,8 +558,10 @@ msg_Info( p_enc, "AAC profile %s", val.psz_string );
p_context
->
sample_rate
=
p_enc
->
fmt_in
.
audio
.
i_rate
;
p_context
->
channels
=
p_enc
->
fmt_in
.
audio
.
i_channels
;
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'a'
)
)
p_context
->
profile
=
p_sys
->
i_aac_profile
;
/* Ignore FF_PROFILE_UNKNOWN */
if
(
(
p_sys
->
i_aac_profile
>=
FF_PROFILE_AAC_MAIN
)
&&
(
p_enc
->
fmt_out
.
i_codec
==
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'a'
)
)
)
p_context
->
profile
=
p_sys
->
i_aac_profile
;
}
/* Misc parameters */
...
...
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