Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
724a7186
Commit
724a7186
authored
Jul 25, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a few missing const.
parent
7fd8d8f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/packetizer/h264.c
modules/packetizer/h264.c
+6
-4
No files found.
modules/packetizer/h264.c
View file @
724a7186
...
...
@@ -148,7 +148,7 @@ enum nal_priority_e
static
block_t
*
ParseNALBlock
(
decoder_t
*
,
block_t
*
);
static
block_t
*
CreateAnnexbNAL
(
decoder_t
*
,
uint8_t
*
p
,
int
);
static
block_t
*
CreateAnnexbNAL
(
decoder_t
*
,
const
uint8_t
*
p
,
int
);
static
block_t
*
OutputPicture
(
decoder_t
*
p_dec
);
static
void
PutSPS
(
decoder_t
*
p_dec
,
block_t
*
p_frag
);
...
...
@@ -496,7 +496,7 @@ static block_t *PacketizeAVC1( decoder_t *p_dec, block_t **pp_block )
/****************************************************************************
* Helpers
****************************************************************************/
static
block_t
*
CreateAnnexbNAL
(
decoder_t
*
p_dec
,
uint8_t
*
p
,
int
i_size
)
static
block_t
*
CreateAnnexbNAL
(
decoder_t
*
p_dec
,
const
uint8_t
*
p
,
int
i_size
)
{
block_t
*
p_nal
;
...
...
@@ -517,9 +517,9 @@ static block_t *CreateAnnexbNAL( decoder_t *p_dec, uint8_t *p, int i_size )
}
static
void
CreateDecodedNAL
(
uint8_t
**
pp_ret
,
int
*
pi_ret
,
uint8_t
*
src
,
int
i_src
)
const
uint8_t
*
src
,
int
i_src
)
{
uint8_t
*
end
=
&
src
[
i_src
];
const
uint8_t
*
end
=
&
src
[
i_src
];
uint8_t
*
dst
=
malloc
(
i_src
);
*
pp_ret
=
dst
;
...
...
@@ -631,6 +631,8 @@ static block_t *ParseNALBlock( decoder_t *p_dec, block_t *p_frag )
{
if
(
p_sys
->
b_slice
)
p_pic
=
OutputPicture
(
p_dec
);
/* TODO parse SEI for CC support */
}
/* Append the block */
...
...
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