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
96fca586
Commit
96fca586
authored
Mar 31, 2008
by
Rafaël Carré
Committed by
Jean-Paul Saman
Mar 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Really fix H264 packetizing: abort PacketizeAVC1() if computed size is too huge
parent
ab4e8a39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
modules/packetizer/h264.c
modules/packetizer/h264.c
+15
-14
No files found.
modules/packetizer/h264.c
View file @
96fca586
...
...
@@ -447,22 +447,23 @@ static block_t *PacketizeAVC1( decoder_t *p_dec, block_t **pp_block )
i_size
=
(
i_size
<<
8
)
|
(
*
p
++
);
}
if
(
i_size
>
0
&&
i_size
<
p_block
->
i_buffer
)
if
(
i_size
<=
0
||
i_size
>=
(
p
-
p_block
->
p_buffer
+
p_block
->
i_buffer
)
)
{
block_t
*
p_part
=
nal_get_annexeb
(
p_dec
,
p
,
i_size
);
if
(
!
p_part
)
{
block_Release
(
p_block
);
return
NULL
;
}
p_part
->
i_dts
=
p_block
->
i_dts
;
p_part
->
i_pts
=
p_block
->
i_pts
;
msg_Err
(
p_dec
,
"Broken frame : size %d is too big"
,
i_size
);
break
;
}
/* Parse the NAL */
if
(
(
p_pic
=
ParseNALBlock
(
p_dec
,
p_part
)
)
)
{
block_ChainAppend
(
&
p_ret
,
p_pic
);
}
block_t
*
p_part
=
nal_get_annexeb
(
p_dec
,
p
,
i_size
);
if
(
!
p_part
)
break
;
p_part
->
i_dts
=
p_block
->
i_dts
;
p_part
->
i_pts
=
p_block
->
i_pts
;
/* Parse the NAL */
if
(
(
p_pic
=
ParseNALBlock
(
p_dec
,
p_part
)
)
)
{
block_ChainAppend
(
&
p_ret
,
p_pic
);
}
p
+=
i_size
;
}
...
...
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