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
05c045e4
Commit
05c045e4
authored
Mar 28, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: split OD/IODInit
parent
4911e585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
modules/demux/mpeg4_iod.c
modules/demux/mpeg4_iod.c
+21
-17
No files found.
modules/demux/mpeg4_iod.c
View file @
05c045e4
...
@@ -438,6 +438,26 @@ static uint8_t IOD_Desc_Read( vlc_object_t *p_object, unsigned *pi_data, const u
...
@@ -438,6 +438,26 @@ static uint8_t IOD_Desc_Read( vlc_object_t *p_object, unsigned *pi_data, const u
return
i_read_count
;
return
i_read_count
;
}
}
static
iod_descriptor_t
*
ODInit
(
vlc_object_t
*
p_object
,
unsigned
i_data
,
const
uint8_t
*
p_data
,
uint8_t
i_start_tag
,
uint8_t
i_min
,
uint8_t
i_max
)
{
/* Initial Object Descriptor must follow */
iod_descriptor_t
*
p_iod
=
calloc
(
1
,
sizeof
(
iod_descriptor_t
)
);
if
(
!
p_iod
)
return
NULL
;
iod_read_params_t
params
;
params
.
p_iod
=
p_iod
;
if
(
IOD_Desc_Read
(
p_object
,
&
i_data
,
&
p_data
,
i_start_tag
,
i_max
,
params
)
<
i_min
)
{
iod_debug
(
p_object
,
" cannot read first tag 0x%"
PRIx8
,
i_start_tag
);
free
(
p_iod
);
return
NULL
;
}
return
p_iod
;
}
iod_descriptor_t
*
IODNew
(
vlc_object_t
*
p_object
,
unsigned
i_data
,
const
uint8_t
*
p_data
)
iod_descriptor_t
*
IODNew
(
vlc_object_t
*
p_object
,
unsigned
i_data
,
const
uint8_t
*
p_data
)
{
{
if
(
i_data
<
4
)
if
(
i_data
<
4
)
...
@@ -461,23 +481,7 @@ iod_descriptor_t *IODNew( vlc_object_t *p_object, unsigned i_data, const uint8_t
...
@@ -461,23 +481,7 @@ iod_descriptor_t *IODNew( vlc_object_t *p_object, unsigned i_data, const uint8_t
return
NULL
;
return
NULL
;
}
}
/* Initial Object Descriptor must follow */
return
ODInit
(
p_object
,
i_data
,
p_data
,
IODTag_InitialObjectDescr
,
1
,
1
);
iod_descriptor_t
*
p_iod
=
calloc
(
1
,
sizeof
(
iod_descriptor_t
)
);
if
(
!
p_iod
)
return
NULL
;
/* IOD_InitialObjectDescrTag Parsing */
iod_read_params_t
params
;
params
.
p_iod
=
p_iod
;
if
(
1
!=
IOD_Desc_Read
(
p_object
,
&
i_data
,
&
p_data
,
IODTag_InitialObjectDescr
,
1
,
params
)
)
{
iod_debug
(
p_object
,
" cannot read InitialObjectDescr"
);
free
(
p_iod
);
return
NULL
;
}
return
p_iod
;
}
}
void
IODFree
(
iod_descriptor_t
*
p_iod
)
void
IODFree
(
iod_descriptor_t
*
p_iod
)
...
...
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