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
75db1bab
Commit
75db1bab
authored
Mar 13, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* block.c: fixed block realloc.
parent
3aafe262
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/misc/block.c
src/misc/block.c
+14
-0
No files found.
src/misc/block.c
View file @
75db1bab
...
...
@@ -73,6 +73,8 @@ static block_t *__BlockDupContent( block_t *p_block )
p_dup
->
i_flags
=
p_block
->
i_flags
;
p_dup
->
i_pts
=
p_block
->
i_pts
;
p_dup
->
i_dts
=
p_block
->
i_dts
;
p_dup
->
i_length
=
p_block
->
i_length
;
p_dup
->
i_rate
=
p_block
->
i_rate
;
return
p_dup
;
}
...
...
@@ -150,9 +152,20 @@ static block_t *BlockRealloc( block_t *p_block, int i_prebody, int i_body )
{
block_t
*
p_rea
=
block_New
(
p_block
->
p_manager
,
i_prebody
+
i_body
);
fprintf
(
stderr
,
"arg i_prebody=%d max is %d
\n
"
,
i_prebody
,
p_block
->
p_buffer
-
p_block
->
p_sys
->
p_allocated_buffer
);
p_rea
->
i_dts
=
p_block
->
i_dts
;
p_rea
->
i_pts
=
p_block
->
i_pts
;
p_rea
->
i_flags
=
p_block
->
i_flags
;
p_rea
->
i_length
=
p_block
->
i_length
;
p_rea
->
i_rate
=
p_block
->
i_rate
;
memcpy
(
&
p_rea
->
p_buffer
[
i_prebody
],
p_block
->
p_buffer
,
p_block
->
i_buffer
);
block_Release
(
p_block
);
return
p_rea
;
}
...
...
@@ -194,6 +207,7 @@ block_t *block_NewEmpty( void )
p_block
->
i_pts
=
0
;
p_block
->
i_dts
=
0
;
p_block
->
i_length
=
0
;
p_block
->
i_rate
=
0
;
p_block
->
i_buffer
=
0
;
p_block
->
p_buffer
=
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