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
963fdfcf
Commit
963fdfcf
authored
9 years ago
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_nal: nal length size of 3 is not in the spec
cf. ISO/IEC 14496-15 5.2.4.1
parent
4a8dc0f0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/packetizer/h264_nal.c
modules/packetizer/h264_nal.c
+3
-2
No files found.
modules/packetizer/h264_nal.c
View file @
963fdfcf
...
@@ -111,10 +111,11 @@ void convert_h264_to_annexb( uint8_t *p_buf, uint32_t i_len,
...
@@ -111,10 +111,11 @@ void convert_h264_to_annexb( uint8_t *p_buf, uint32_t i_len,
{
{
uint32_t
nal_len
=
0
,
nal_pos
=
0
;
uint32_t
nal_len
=
0
,
nal_pos
=
0
;
if
(
i_nal_length_size
<
3
||
i_nal_length_size
>
4
)
if
(
i_nal_length_size
!=
4
)
return
;
return
;
/* This only works for NAL sizes 3-4 */
/* This only works for a NAL length size of 4 */
/* TODO: realloc/memmove if i_nal_length_size is 2 or 1 */
while
(
i_len
>
0
)
while
(
i_len
>
0
)
{
{
if
(
nal_pos
<
i_nal_length_size
)
{
if
(
nal_pos
<
i_nal_length_size
)
{
...
...
This diff is collapsed.
Click to expand it.
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