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
b4b9f772
Commit
b4b9f772
authored
Dec 04, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c, modules/codec/speex.c: fixed stupid bug in audio encoding.
parent
3a276630
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+3
-3
modules/codec/speex.c
modules/codec/speex.c
+3
-3
No files found.
modules/codec/ffmpeg/encoder.c
View file @
b4b9f772
...
...
@@ -2,7 +2,7 @@
* encoder.c: video and audio encoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: encoder.c,v 1.1
7 2003/11/29 18:36:13 massiot
Exp $
* $Id: encoder.c,v 1.1
8 2003/12/04 23:15:01 gbazin
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -465,8 +465,8 @@ static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
/* Backup the remaining raw samples */
if
(
i_samples
)
{
memcpy
(
p_sys
->
p_buffer
,
p_buffer
+
i_samples_delay
*
2
*
p_sys
->
p_context
->
channels
,
memcpy
(
p_sys
->
p_buffer
+
i_samples_delay
*
2
*
p_sys
->
p_context
->
channels
,
p_buffer
,
i_samples
*
2
*
p_sys
->
p_context
->
channels
);
}
...
...
modules/codec/speex.c
View file @
b4b9f772
...
...
@@ -2,7 +2,7 @@
* speex.c: speex decoder/packetizer/encoder module making use of libspeex.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: speex.c,v 1.
6 2003/12/04 16:49:43 sam
Exp $
* $Id: speex.c,v 1.
7 2003/12/04 23:15:01 gbazin
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -730,8 +730,8 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
/* Backup the remaining raw samples */
if
(
i_samples
)
{
memcpy
(
p_sys
->
p_buffer
,
p_buffer
+
i_samples_delay
*
2
*
p_enc
->
fmt_in
.
audio
.
i_channels
,
memcpy
(
p_sys
->
p_buffer
+
i_samples_delay
*
2
*
p_enc
->
fmt_in
.
audio
.
i_channels
,
p_buffer
,
i_samples
*
2
*
p_enc
->
fmt_in
.
audio
.
i_channels
);
}
...
...
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