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
GSoC
GSoC2018
macOS
vlc
Commits
5abc9423
Commit
5abc9423
authored
Feb 25, 2007
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy complete es format descriptor when extra data is added.
parent
f9564817
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
src/input/decoder.c
src/input/decoder.c
+4
-10
No files found.
src/input/decoder.c
View file @
5abc9423
...
...
@@ -618,11 +618,8 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
{
if
(
p_packetizer
->
fmt_out
.
i_extra
&&
!
p_dec
->
fmt_in
.
i_extra
)
{
p_dec
->
fmt_in
.
i_extra
=
p_packetizer
->
fmt_out
.
i_extra
;
p_dec
->
fmt_in
.
p_extra
=
malloc
(
p_dec
->
fmt_in
.
i_extra
);
memcpy
(
p_dec
->
fmt_in
.
p_extra
,
p_packetizer
->
fmt_out
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
es_format_Clean
(
&
p_dec
->
fmt_in
);
es_format_Copy
(
&
p_dec
->
fmt_in
,
&
p_packetizer
->
fmt_out
);
}
while
(
p_packetized_block
)
...
...
@@ -699,11 +696,8 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
{
if
(
p_packetizer
->
fmt_out
.
i_extra
&&
!
p_dec
->
fmt_in
.
i_extra
)
{
p_dec
->
fmt_in
.
i_extra
=
p_packetizer
->
fmt_out
.
i_extra
;
p_dec
->
fmt_in
.
p_extra
=
malloc
(
p_dec
->
fmt_in
.
i_extra
);
memcpy
(
p_dec
->
fmt_in
.
p_extra
,
p_packetizer
->
fmt_out
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
es_format_Clean
(
&
p_dec
->
fmt_in
);
es_format_Copy
(
&
p_dec
->
fmt_in
,
&
p_packetizer
->
fmt_out
);
}
while
(
p_packetized_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