Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3de41162
Commit
3de41162
authored
Nov 26, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save one pointer and dereference in the block core
parent
7d5a2026
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/misc/block.c
src/misc/block.c
+1
-3
No files found.
src/misc/block.c
View file @
3de41162
...
...
@@ -33,8 +33,8 @@
/* private */
struct
block_sys_t
{
uint8_t
*
p_allocated_buffer
;
size_t
i_allocated_buffer
;
uint8_t
p_allocated_buffer
[
0
];
};
#define BLOCK_PADDING_SIZE 32
...
...
@@ -58,8 +58,6 @@ block_t *__block_New( vlc_object_t *p_obj, size_t i_size )
/* Fill opaque data */
p_sys
=
(
block_sys_t
*
)(
(
uint8_t
*
)
p_block
+
sizeof
(
block_t
)
);
p_sys
->
i_allocated_buffer
=
i_alloc
;
p_sys
->
p_allocated_buffer
=
(
uint8_t
*
)
p_block
+
sizeof
(
block_t
)
+
sizeof
(
block_sys_t
);
/* Fill all fields */
p_block
->
p_next
=
NULL
;
...
...
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