Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8e62eafb
Commit
8e62eafb
authored
Sep 03, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use fl32 but fi32 when transcoding on non-FPU capable systems.
parent
36c1cae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+9
-5
No files found.
modules/stream_out/transcode.c
View file @
8e62eafb
...
...
@@ -1081,12 +1081,15 @@ static int transcode_audio_filter_chain_build( sout_stream_t *p_stream, filter_c
p_src
->
audio
.
i_rate
,
p_dst
->
audio
.
i_rate
);
/* If any filter is needed, convert to fl32 */
if
(
current
.
i_codec
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
)
vlc_fourcc_t
fourcc
=
(
vlc_CPU
()
&
CPU_CAPABILITY_FPU
)
?
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
:
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
);
/* If any filter is needed, convert to fl32 or fi32 */
if
(
current
.
i_codec
!=
fourcc
)
{
/* First step, convert to f
l
32 */
/* First step, convert to f
{l,i}
32 */
current
.
i_codec
=
current
.
audio
.
i_format
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
;
current
.
audio
.
i_format
=
fourcc
;
if
(
!
filter_chain_AppendFilter
(
p_chain
,
NULL
,
NULL
,
NULL
,
&
current
)
)
{
...
...
@@ -1227,7 +1230,8 @@ static int transcode_audio_new( sout_stream_t *p_stream,
{
es_format_t
fmt_fl32
=
fmt_last
;
fmt_fl32
.
i_codec
=
fmt_fl32
.
audio
.
i_format
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
);
fmt_fl32
.
audio
.
i_format
=
(
vlc_CPU
()
&
CPU_CAPABILITY_FPU
)
?
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
:
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
);
if
(
transcode_audio_filter_chain_build
(
p_stream
,
id
->
p_uf_chain
,
&
fmt_fl32
,
&
fmt_last
)
)
{
...
...
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