Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
455
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
fcea1a34
Commit
fcea1a34
authored
6 years ago
by
François Cartegnie
Browse files
Options
Downloads
Patches
Plain Diff
packetizer: dts: store substream header size
parent
0ab18a89
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/packetizer/dts_header.c
+4
-2
4 additions, 2 deletions
modules/packetizer/dts_header.c
modules/packetizer/dts_header.h
+1
-0
1 addition, 0 deletions
modules/packetizer/dts_header.h
with
5 additions
and
2 deletions
modules/packetizer/dts_header.c
+
4
−
2
View file @
fcea1a34
...
...
@@ -241,18 +241,20 @@ static int dts_header_ParseSubstream( vlc_dts_header_t *p_header,
bs_skip
(
&
s
,
32
/*SYNCEXTSSH*/
+
8
/*UserDefinedBits*/
+
2
/*nExtSSIndex*/
);
uint8_t
bHeaderSizeType
=
bs_read1
(
&
s
);
uint32_t
nuBits4ExSSFsize
;
uint16_t
nuExtSSHeaderSize
;
if
(
bHeaderSizeType
==
0
)
{
bs_skip
(
&
s
,
8
/*nuBits4Header*/
);
nuExtSSHeaderSize
=
bs_read
(
&
s
,
8
/*nuBits4Header*/
);
nuBits4ExSSFsize
=
bs_read
(
&
s
,
16
);
}
else
{
bs_skip
(
&
s
,
12
/*nuBits4Header*/
);
nuExtSSHeaderSize
=
bs_read
(
&
s
,
12
/*nuBits4Header*/
);
nuBits4ExSSFsize
=
bs_read
(
&
s
,
20
);
}
memset
(
p_header
,
0
,
sizeof
(
*
p_header
)
);
p_header
->
syncword
=
DTS_SYNC_SUBSTREAM
;
p_header
->
i_substream_header_size
=
nuExtSSHeaderSize
+
1
;
p_header
->
i_frame_size
=
nuBits4ExSSFsize
+
1
;
return
VLC_SUCCESS
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/packetizer/dts_header.h
+
1
−
0
View file @
fcea1a34
...
...
@@ -44,6 +44,7 @@ typedef struct
unsigned
int
i_bitrate
;
unsigned
int
i_frame_size
;
unsigned
int
i_frame_length
;
uint32_t
i_substream_header_size
;
uint16_t
i_physical_channels
;
uint16_t
i_chan_mode
;
}
vlc_dts_header_t
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment