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
479c96ee
Commit
479c96ee
authored
Sep 06, 2001
by
Henri Fallon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A very tiny small useless optimization in the LPCM decoder
parent
a667c904
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
ChangeLog
ChangeLog
+1
-1
src/lpcm_decoder/lpcm_decoder_thread.c
src/lpcm_decoder/lpcm_decoder_thread.c
+8
-4
No files found.
ChangeLog
View file @
479c96ee
...
...
@@ -4,7 +4,7 @@
HEAD
*
Nothing
yet
.
*
Tiny
small
optim
in
LPCM
decoder
.
0.2.83
Wed
,
22
Aug
2001
15
:
18
:
01
+
0200
...
...
src/lpcm_decoder/lpcm_decoder_thread.c
View file @
479c96ee
...
...
@@ -2,7 +2,7 @@
* lpcm_decoder_thread.c: lpcm decoder thread
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: lpcm_decoder_thread.c,v 1.1
6 2001/06/12 13:50:09
henri Exp $
* $Id: lpcm_decoder_thread.c,v 1.1
7 2001/09/06 04:28:36
henri Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Henri Fallon <henri@videolan.org>
...
...
@@ -181,10 +181,14 @@ static void RunThread (lpcmdec_thread_t * p_lpcmdec)
buffer
=
((
byte_t
*
)
p_lpcmdec
->
p_aout_fifo
->
buffer
)
+
(
p_lpcmdec
->
p_aout_fifo
->
l_end_frame
*
LPCMDEC_FRAME_SIZE
);
byte1
=
GetBits
(
&
p_lpcmdec
->
bit_stream
,
8
);
byte2
=
GetBits
(
&
p_lpcmdec
->
bit_stream
,
8
);
RemoveBits32
(
&
p_lpcmdec
->
bit_stream
);
byte1
=
GetBits
(
&
p_lpcmdec
->
bit_stream
,
8
)
;
byte2
=
GetBits
(
&
p_lpcmdec
->
bit_stream
,
8
)
;
/* Get the sync word : 0x0180 */
/* I only have 2 test streams. As far as I understand
* after the RemoveBits and the 2 GetBits, we should be exactly
* where we whant : the sync word : 0x0180.
* If not, we got and find it. */
while
(
(
byte1
!=
0x01
||
byte2
!=
0x80
)
&&
(
!
p_lpcmdec
->
p_fifo
->
b_die
)
&&
(
!
p_lpcmdec
->
p_fifo
->
b_error
)
)
{
...
...
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