Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
03e8fefe
Commit
03e8fefe
authored
Nov 22, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/transcode.c: put back the dumb downmixing routine.
parent
bfa286d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+19
-1
No files found.
modules/stream_out/transcode.c
View file @
03e8fefe
...
...
@@ -2,7 +2,7 @@
* transcode.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: transcode.c,v 1.5
2 2003/11/21 15:32:08 fenrir
Exp $
* $Id: transcode.c,v 1.5
3 2003/11/22 13:49:12 gbazin
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -886,6 +886,24 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream,
id
->
i_dts
+=
(
I64C
(
1000000
)
*
id
->
i_buffer_pos
/
2
/
id
->
f_src
.
audio
.
i_channels
/
id
->
f_src
.
audio
.
i_rate
);
if
(
id
->
f_src
.
audio
.
i_channels
!=
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
)
{
int
i
,
j
;
/* dumb downmixing */
for
(
i
=
0
;
i
<
aout_buf
.
i_nb_samples
;
i
++
)
{
uint16_t
*
p_buffer
=
aout_buf
.
p_buffer
;
for
(
j
=
0
;
j
<
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
;
j
++
)
{
p_buffer
[
i
*
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
+
j
]
=
p_buffer
[
i
*
id
->
f_src
.
audio
.
i_channels
+
j
];
}
}
aout_buf
.
i_nb_bytes
=
i
*
id
->
p_encoder
->
fmt_in
.
audio
.
i_channels
*
2
;
}
p_block
=
id
->
p_encoder
->
pf_encode_audio
(
id
->
p_encoder
,
&
aout_buf
);
while
(
p_block
)
{
...
...
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