Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
7aa5ac93
Commit
7aa5ac93
authored
Apr 28, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed extra data parsing with some VC1 streams.
parent
a3b251ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
modules/packetizer/vc1.c
modules/packetizer/vc1.c
+21
-8
No files found.
modules/packetizer/vc1.c
View file @
7aa5ac93
...
...
@@ -155,17 +155,30 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_interpolated_dts
=
-
1
;
if
(
p_dec
->
fmt_
in
.
i_extra
>
0
)
/* */
if
(
p_dec
->
fmt_
out
.
i_extra
>
0
)
{
block_t
*
p_init
=
block_New
(
p_dec
,
p_dec
->
fmt_in
.
i_extra
);
block_t
*
p_pic
;
uint8_t
*
p_extra
=
p_dec
->
fmt_out
.
p_extra
;
memcpy
(
p_init
->
p_buffer
,
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
/* With (some) ASF the first byte has to be stripped */
if
(
p_extra
[
0
]
!=
0x00
)
{
memcpy
(
&
p_extra
[
0
],
&
p_extra
[
1
],
p_dec
->
fmt_out
.
i_extra
-
1
);
p_dec
->
fmt_out
.
i_extra
--
;
}
while
(
(
p_pic
=
Packetize
(
p_dec
,
&
p_init
)
)
)
block_Release
(
p_pic
);
/* Should not happen (only sequence header) */
/* */
if
(
p_dec
->
fmt_out
.
i_extra
>
0
)
{
block_t
*
p_init
=
block_New
(
p_dec
,
p_dec
->
fmt_out
.
i_extra
);
memcpy
(
p_init
->
p_buffer
,
p_dec
->
fmt_out
.
p_extra
,
p_dec
->
fmt_out
.
i_extra
);
block_t
*
p_pic
;
while
(
(
p_pic
=
Packetize
(
p_dec
,
&
p_init
)
)
)
block_Release
(
p_pic
);
/* Should not happen (only sequence header) */
}
}
return
VLC_SUCCESS
;
...
...
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