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
70160a56
Commit
70160a56
authored
Apr 23, 2006
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/video_output.c: 4th (and good) attempt at fixing mask
shifts. Thanks to bigben for testing.
parent
2bd21655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/video_output/video_output.c
src/video_output/video_output.c
+2
-2
No files found.
src/video_output/video_output.c
View file @
70160a56
...
...
@@ -1207,7 +1207,7 @@ static int BinaryLog( uint32_t i )
*****************************************************************************/
static
void
MaskToShift
(
int
*
pi_left
,
int
*
pi_right
,
uint32_t
i_mask
)
{
uint
64
_t
i_low
,
i_high
;
/* lower hand higher bits of the mask */
uint
32
_t
i_low
,
i_high
;
/* lower hand higher bits of the mask */
if
(
!
i_mask
)
{
...
...
@@ -1218,7 +1218,7 @@ static void MaskToShift( int *pi_left, int *pi_right, uint32_t i_mask )
/* Get bits */
i_low
=
i_high
=
i_mask
;
i_low
&=
-
(
int
64
_t
)
i_low
;
/* lower bit of the mask */
i_low
&=
-
(
int
32
_t
)
i_low
;
/* lower bit of the mask */
i_high
+=
i_low
;
/* higher bit of the mask */
/* Transform bits into an index. Also deal with i_high overflow, which
...
...
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