Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
22fc7176
Commit
22fc7176
authored
Apr 01, 2007
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [19002]
Copy complete es format descriptor when extra data is added.
parent
3cbd368b
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 @
22fc7176
...
...
@@ -611,11 +611,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
)
...
...
@@ -682,11 +679,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