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
a85534e5
Commit
a85534e5
authored
Jan 12, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed 32 bits bitstream bugs.
parent
e3636eb1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
24 deletions
+13
-24
include/input_ext-dec.h
include/input_ext-dec.h
+13
-24
No files found.
include/input_ext-dec.h
View file @
a85534e5
...
...
@@ -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
1 2001/01/11 15:35:35 sam
Exp $
* $Id: input_ext-dec.h,v 1.1
2 2001/01/12 11:36:49 massiot
Exp $
*
* Authors:
*
...
...
@@ -308,22 +308,15 @@ static __inline__ void RemoveBits( bit_stream_t * p_bit_stream, int i_bits )
*****************************************************************************/
static
__inline__
void
RemoveBits32
(
bit_stream_t
*
p_bit_stream
)
{
#if (WORD_TYPE == u32)
/* If we are word aligned, do not touch the buffer */
if
(
p_bit_stream
->
fifo
.
i_available
==
0
)
if
(
p_bit_stream
->
fifo
.
i_available
)
{
if
(
p_bit_stream
->
p_byte
>
p_bit_stream
->
p_end
-
sizeof
(
WORD_TYPE
)
)
{
p_bit_stream
->
pf_next_data_packet
(
p_bit_stream
);
}
((
WORD_TYPE
*
)
p_bit_stream
->
p_byte
)
++
;
return
;
}
#endif
p_bit_stream
->
fifo
.
buffer
=
GetWord
(
p_bit_stream
)
<<
(
32
-
p_bit_stream
->
fifo
.
i_available
);
}
else
{
p_bit_stream
->
fifo
.
buffer
=
GetWord
(
p_bit_stream
);
}
}
/*****************************************************************************
...
...
@@ -360,21 +353,17 @@ static __inline__ WORD_TYPE GetBits32( bit_stream_t * p_bit_stream )
{
WORD_TYPE
i_result
;
#if (WORD_TYPE == u32)
/* If we are word aligned, do not touch the buffer */
if
(
p_bit_stream
->
fifo
.
i_available
==
0
)
{
return
(
GetWord
(
p_bit_stream
)
);
}
#endif
i_result
=
p_bit_stream
->
fifo
.
buffer
;
p_bit_stream
->
fifo
.
buffer
=
GetWord
(
p_bit_stream
);
i_result
|=
p_bit_stream
->
fifo
.
buffer
>>
(
p_bit_stream
->
fifo
.
i_available
);
if
(
p_bit_stream
->
fifo
.
i_available
)
{
p_bit_stream
->
fifo
.
buffer
<<=
(
8
*
sizeof
(
WORD_TYPE
)
-
p_bit_stream
->
fifo
.
i_available
);
}
return
(
i_result
);
}
...
...
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