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
f5623dec
Commit
f5623dec
authored
Jun 22, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish fixing audio rate changes.
parent
b4a4b564
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+5
-5
No files found.
modules/stream_out/transcode.c
View file @
f5623dec
...
...
@@ -1152,7 +1152,7 @@ static int transcode_audio_new( sout_stream_t *p_stream,
id
->
p_decoder
->
fmt_out
.
i_codec
);
id
->
p_encoder
->
fmt_in
.
audio
.
i_format
=
id
->
p_decoder
->
fmt_out
.
i_codec
;
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
=
id
->
p_encoder
->
fmt_out
.
audio
.
i_rate
;
id
->
p_encoder
->
fmt_in
.
audio
.
i_rate
=
fmt_last
.
audio
.
i_rate
;
//
id->p_encoder->fmt_out.audio.i_rate;
id
->
p_encoder
->
fmt_in
.
audio
.
i_physical_channels
=
id
->
p_encoder
->
fmt_out
.
audio
.
i_physical_channels
;
id
->
p_encoder
->
fmt_in
.
audio
.
i_original_channels
=
...
...
@@ -1188,10 +1188,10 @@ static int transcode_audio_new( sout_stream_t *p_stream,
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'
);
filter_chain_AppendFilter
(
id
->
p_f_chain
,
NULL
,
NULL
,
&
fmt_last
,
&
fmt_ou
t
);
fmt_last
=
fmt_out
;
fmt_last
.
i_codec
=
fmt_last
.
audio
.
i_format
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
;
fmt_
last
.
audio
.
i_bitspersample
=
aout_BitsPerSample
(
fmt_last
.
i_codec
);
filter_chain_AppendFilter
(
id
->
p_f_chain
,
NULL
,
NULL
,
NULL
,
&
fmt_las
t
);
fmt_last
=
*
filter_chain_GetFmtOut
(
id
->
p_f_chain
)
;
}
for
(
i
=
0
;
i
<
4
;
i
++
)
...
...
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