Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
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 )
...
@@ -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
)
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
;
es_format_Clean
(
&
p_dec
->
fmt_in
);
p_dec
->
fmt_in
.
p_extra
=
malloc
(
p_dec
->
fmt_in
.
i_extra
);
es_format_Copy
(
&
p_dec
->
fmt_in
,
&
p_packetizer
->
fmt_out
);
memcpy
(
p_dec
->
fmt_in
.
p_extra
,
p_packetizer
->
fmt_out
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
}
}
while
(
p_packetized_block
)
while
(
p_packetized_block
)
...
@@ -699,11 +696,8 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_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
)
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
;
es_format_Clean
(
&
p_dec
->
fmt_in
);
p_dec
->
fmt_in
.
p_extra
=
malloc
(
p_dec
->
fmt_in
.
i_extra
);
es_format_Copy
(
&
p_dec
->
fmt_in
,
&
p_packetizer
->
fmt_out
);
memcpy
(
p_dec
->
fmt_in
.
p_extra
,
p_packetizer
->
fmt_out
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
}
}
while
(
p_packetized_block
)
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