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
0d158057
Commit
0d158057
authored
Feb 14, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TS demux: decoder_specific_info -> i_extra/p_extra
parent
6e8a6d28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
modules/demux/ts.c
modules/demux/ts.c
+18
-18
No files found.
modules/demux/ts.c
View file @
0d158057
...
...
@@ -181,8 +181,8 @@ typedef struct
uint32_t
i_maxBitrate
;
uint32_t
i_avgBitrate
;
int
i_
decoder_specific_info_len
;
uint8_t
*
p_
decoder_specific_info
;
int
i_
extra
;
uint8_t
*
p_
extra
;
}
decoder_config_descriptor_t
;
...
...
@@ -1579,9 +1579,9 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid )
{
decoder_config_descriptor_t
*
dcd
=
&
pid
->
es
->
p_mpeg4desc
->
dec_descr
;
if
(
dcd
->
i_
decoder_specific_info_len
>
2
&&
dcd
->
p_
decoder_specific_info
[
0
]
==
0x10
&&
(
dcd
->
p_
decoder_specific_info
[
1
]
&
0x10
)
)
if
(
dcd
->
i_
extra
>
2
&&
dcd
->
p_
extra
[
0
]
==
0x10
&&
(
dcd
->
p_
extra
[
1
]
&
0x10
)
)
{
/* display length */
if
(
p_pes
->
i_buffer
+
2
<=
i_skip
)
...
...
@@ -2549,22 +2549,22 @@ static iod_descriptor_t *IODNew( int i_data, uint8_t *p_data )
if
(
i_decoderConfigDescr_length
>
13
&&
IODGetByte
(
&
i_data
,
&
p_data
)
==
0x05
)
{
int
i
;
dec_descr
.
i_
decoder_specific_info_len
=
dec_descr
.
i_
extra
=
IODDescriptorLength
(
&
i_data
,
&
p_data
);
if
(
dec_descr
.
i_
decoder_specific_info_len
>
0
)
if
(
dec_descr
.
i_
extra
>
0
)
{
dec_descr
.
p_
decoder_specific_info
=
xmalloc
(
dec_descr
.
i_
decoder_specific_info_len
);
dec_descr
.
p_
extra
=
xmalloc
(
dec_descr
.
i_
extra
);
}
for
(
i
=
0
;
i
<
dec_descr
.
i_
decoder_specific_info_len
;
i
++
)
for
(
i
=
0
;
i
<
dec_descr
.
i_
extra
;
i
++
)
{
dec_descr
.
p_
decoder_specific_info
[
i
]
=
IODGetByte
(
&
i_data
,
&
p_data
);
dec_descr
.
p_
extra
[
i
]
=
IODGetByte
(
&
i_data
,
&
p_data
);
}
}
else
{
dec_descr
.
i_
decoder_specific_info_len
=
0
;
dec_descr
.
p_
decoder_specific_info
=
NULL
;
dec_descr
.
i_
extra
=
0
;
dec_descr
.
p_
extra
=
NULL
;
}
}
#undef dec_descr
...
...
@@ -2675,9 +2675,9 @@ static void IODFree( iod_descriptor_t *p_iod )
}
else
{
free
(
es_descr
.
dec_descr
.
p_
decoder_specific_info
);
es_descr
.
dec_descr
.
p_
decoder_specific_info
=
NULL
;
es_descr
.
dec_descr
.
i_
decoder_specific_info_len
=
0
;
free
(
es_descr
.
dec_descr
.
p_
extra
);
es_descr
.
dec_descr
.
p_
extra
=
NULL
;
es_descr
.
dec_descr
.
i_
extra
=
0
;
}
}
es_descr
.
b_ok
=
0
;
...
...
@@ -3283,13 +3283,13 @@ static void PMTSetupEsISO14496( demux_t *p_demux, ts_pid_t *pid,
if
(
p_fmt
->
i_cat
!=
UNKNOWN_ES
)
{
p_fmt
->
i_extra
=
dcd
->
i_
decoder_specific_info_len
;
p_fmt
->
i_extra
=
dcd
->
i_
extra
;
if
(
p_fmt
->
i_extra
>
0
)
{
p_fmt
->
p_extra
=
malloc
(
p_fmt
->
i_extra
);
if
(
p_fmt
->
p_extra
)
memcpy
(
p_fmt
->
p_extra
,
dcd
->
p_
decoder_specific_info
,
dcd
->
p_
extra
,
p_fmt
->
i_extra
);
else
p_fmt
->
i_extra
=
0
;
...
...
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