Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ff9e64f1
Commit
ff9e64f1
authored
Mar 18, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/transcode.c: convert audio to fl32 first if needed.
parent
6b870fca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+15
-3
No files found.
modules/stream_out/transcode.c
View file @
ff9e64f1
...
@@ -998,6 +998,19 @@ static int transcode_audio_new( sout_stream_t *p_stream,
...
@@ -998,6 +998,19 @@ static int transcode_audio_new( sout_stream_t *p_stream,
audio_BitsPerSample
(
id
->
p_encoder
->
fmt_in
.
i_codec
);
audio_BitsPerSample
(
id
->
p_encoder
->
fmt_in
.
i_codec
);
/* Load conversion filters */
/* Load conversion filters */
if
(
fmt_last
.
audio
.
i_channels
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
||
fmt_last
.
audio
.
i_rate
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
)
{
/* We'll have to go through fl32 first */
es_format_t
fmt_out
=
id
->
p_encoder
->
fmt_in
;
fmt_out
.
i_codec
=
fmt_out
.
audio
.
i_format
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
);
id
->
pp_filter
[
id
->
i_filter
]
=
transcode_audio_filter_new
(
p_stream
,
id
,
&
fmt_last
,
&
fmt_out
);
if
(
id
->
pp_filter
[
id
->
i_filter
]
)
id
->
i_filter
++
;
}
while
(
i_pass
--
)
while
(
i_pass
--
)
{
{
if
(
fmt_last
.
audio
.
i_channels
!=
if
(
fmt_last
.
audio
.
i_channels
!=
...
@@ -1024,8 +1037,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
...
@@ -1024,8 +1037,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
fmt_last
.
audio
.
i_channels
!=
if
(
fmt_last
.
audio
.
i_channels
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
)
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
)
{
{
msg_Dbg
(
p_stream
,
"no audio filter found for mixing from"
msg_Dbg
(
p_stream
,
"no audio filter found for mixing from"
" %i to %i channels"
,
fmt_last
.
audio
.
i_channels
,
" %i to %i channels"
,
fmt_last
.
audio
.
i_channels
,
...
@@ -1044,7 +1056,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
...
@@ -1044,7 +1056,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
if
(
fmt_last
.
audio
.
i_rate
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
)
if
(
fmt_last
.
audio
.
i_rate
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
)
{
{
msg_Dbg
(
p_stream
,
"no audio filter found resampling from"
msg_Dbg
(
p_stream
,
"no audio filter found
for
resampling from"
" %iHz to %iHz"
,
fmt_last
.
audio
.
i_rate
,
" %iHz to %iHz"
,
fmt_last
.
audio
.
i_rate
,
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
);
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
);
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
=
fmt_last
.
audio
.
i_rate
;
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
=
fmt_last
.
audio
.
i_rate
;
...
...
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