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
8c2e1d88
Commit
8c2e1d88
authored
Dec 24, 2002
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a major bug in fixed32tos16.c.
parent
081377ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
modules/audio_filter/converter/fixed32tos16.c
modules/audio_filter/converter/fixed32tos16.c
+2
-11
No files found.
modules/audio_filter/converter/fixed32tos16.c
View file @
8c2e1d88
...
...
@@ -2,7 +2,7 @@
* fixed32tos16.c : converter from fixed32 to signed 16 bits integer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: fixed32tos16.c,v 1.
8 2002/11/20 16:43:32 sam
Exp $
* $Id: fixed32tos16.c,v 1.
9 2002/12/24 15:28:57 massiot
Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
...
...
@@ -204,16 +204,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
/* Accurate scaling */
// p_out = mpg321_s24_to_s16_pcm(16, *p_in++, &dither);
/* Fast Scaling */
sample
=
s24_to_s16_pcm
(
*
p_in
++
);
#ifndef WORDS_BIGENDIAN
*
p_out
++
=
(
s16
)
(
sample
>>
0
);
*
p_out
++
=
(
s16
)
(
sample
>>
8
);
#else
*
p_out
++
=
(
s16
)
(
sample
>>
8
);
*
p_out
++
=
(
s16
)
(
sample
>>
0
);
#endif
// p_in++; p_out++;
*
p_out
++
=
s24_to_s16_pcm
(
*
p_in
++
);
}
p_out_buf
->
i_nb_samples
=
p_in_buf
->
i_nb_samples
;
p_out_buf
->
i_nb_bytes
=
p_in_buf
->
i_nb_bytes
/
2
;
...
...
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