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
0eddfe9c
Commit
0eddfe9c
authored
Jan 22, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Minor bitstream optimization.
parent
ea94227e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
include/input_ext-dec.h
include/input_ext-dec.h
+5
-4
src/input/input_ext-dec.c
src/input/input_ext-dec.c
+1
-1
No files found.
include/input_ext-dec.h
View file @
0eddfe9c
...
...
@@ -2,7 +2,7 @@
* input_ext-dec.h: structures exported to the VideoLAN decoders
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: input_ext-dec.h,v 1.1
8 2001/01/21 01:36:25
massiot Exp $
* $Id: input_ext-dec.h,v 1.1
9 2001/01/22 18:04:10
massiot Exp $
*
* Authors:
*
...
...
@@ -312,9 +312,10 @@ static __inline__ u32 GetBits( bit_stream_t * p_bit_stream,
{
u32
i_result
;
if
(
p_bit_stream
->
fifo
.
i_available
>=
i_bits
)
{
p_bit_stream
->
fifo
.
i_available
-=
i_bits
;
if
(
p_bit_stream
->
fifo
.
i_available
>=
0
)
{
i_result
=
p_bit_stream
->
fifo
.
buffer
>>
(
8
*
sizeof
(
WORD_TYPE
)
-
i_bits
);
p_bit_stream
->
fifo
.
buffer
<<=
i_bits
;
...
...
@@ -323,7 +324,6 @@ static __inline__ u32 GetBits( bit_stream_t * p_bit_stream,
if
(
p_bit_stream
->
p_byte
<=
p_bit_stream
->
p_end
-
sizeof
(
WORD_TYPE
)
)
{
p_bit_stream
->
fifo
.
i_available
-=
i_bits
;
i_result
=
p_bit_stream
->
fifo
.
buffer
>>
(
8
*
sizeof
(
WORD_TYPE
)
-
i_bits
);
p_bit_stream
->
fifo
.
buffer
=
WORD_AT
(
p_bit_stream
->
p_byte
);
...
...
@@ -373,6 +373,7 @@ static __inline__ u32 GetBits32( bit_stream_t * p_bit_stream )
return
(
i_result
);
}
p_bit_stream
->
fifo
.
i_available
-=
32
;
return
UnalignedGetBits
(
p_bit_stream
,
32
);
}
#else
...
...
src/input/input_ext-dec.c
View file @
0eddfe9c
...
...
@@ -184,7 +184,7 @@ u32 UnalignedGetBits( bit_stream_t * p_bit_stream, unsigned int i_bits )
i_result
=
p_bit_stream
->
fifo
.
buffer
>>
(
8
*
sizeof
(
WORD_TYPE
)
-
i_bits
);
i_bits
-=
p_bit_stream
->
fifo
.
i_available
;
i_bits
=
-
p_bit_stream
->
fifo
.
i_available
;
/* Gather missing bytes. */
while
(
i_bits
>=
8
)
...
...
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