Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
d21227b6
Commit
d21227b6
authored
Jul 19, 2005
by
Laurent Aimar
Browse files
* h264: handle SPS/PPS in annexb format in extra data (needed for RTP).
parent
17864a3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/packetizer/h264.c
View file @
d21227b6
...
...
@@ -205,6 +205,22 @@ static int Open( vlc_object_t *p_this )
{
/* Set callback */
p_dec
->
pf_packetize
=
Packetize
;
/* */
if
(
p_dec
->
fmt_in
.
i_extra
>
0
)
{
block_t
*
p_init
=
block_New
(
p_dec
,
p_dec
->
fmt_in
.
i_extra
);
block_t
*
p_pic
;
memcpy
(
p_init
->
p_buffer
,
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
while
(
(
p_pic
=
Packetize
(
p_dec
,
&
p_init
)
)
)
{
/* Should not occur because we should only receive SPS/PPS */
block_Release
(
p_pic
);
}
}
}
return
VLC_SUCCESS
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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