Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a7e6be66
Commit
a7e6be66
authored
Nov 04, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
685e2b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
modules/packetizer/h264.c
modules/packetizer/h264.c
+14
-12
No files found.
modules/packetizer/h264.c
View file @
a7e6be66
...
...
@@ -791,16 +791,15 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
return
;
}
if
(
100
==
i_profile_idc
||
110
==
i_profile_idc
||
122
==
i_profile_idc
||
244
==
i_profile_idc
||
44
==
i_profile_idc
||
83
==
i_profile_idc
||
86
==
i_profile_idc
)
if
(
i_profile_idc
==
100
||
i_profile_idc
==
110
||
i_profile_idc
==
122
||
i_profile_idc
==
244
||
i_profile_idc
==
44
||
i_profile_idc
==
83
||
i_profile_idc
==
86
)
{
/* chroma_format_idc */
int
i_chroma_format_idc
=
bs_read_ue
(
&
s
);
if
(
3
==
i_chroma_format_idc
)
/* seperate_colour_plane_flag */
bs_skip
(
&
s
,
1
);
const
int
i_chroma_format_idc
=
bs_read_ue
(
&
s
);
if
(
i_chroma_format_idc
==
3
)
bs_skip
(
&
s
,
1
);
/* seperate_colour_plane_flag */
/* bit_depth_luma_minus8 */
bs_read_ue
(
&
s
);
/* bit_depth_chroma_minus8 */
...
...
@@ -811,17 +810,20 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
i_tmp
=
bs_read
(
&
s
,
1
);
if
(
i_tmp
)
{
for
(
int
i
=
0
;
i
<
((
3
!=
i_chroma_format_idc
)
?
8
:
12
);
i
++
)
{
for
(
int
i
=
0
;
i
<
((
3
!=
i_chroma_format_idc
)
?
8
:
12
);
i
++
)
{
/* seq_scaling_list_present_flag[i] */
i_tmp
=
bs_read
(
&
s
,
1
);
if
(
!
i_tmp
)
continue
;
int
i_size_of_scaling_list
=
(
i
<
6
)
?
16
:
64
;
const
int
i_size_of_scaling_list
=
(
i
<
6
)
?
16
:
64
;
/* scaling_list (...) */
int
i_lastscale
=
8
;
int
i_nextscale
=
8
;
for
(
int
j
=
0
;
j
<
i_size_of_scaling_list
;
j
++
)
{
if
(
i_nextscale
!=
0
)
{
for
(
int
j
=
0
;
j
<
i_size_of_scaling_list
;
j
++
)
{
if
(
i_nextscale
!=
0
)
{
/* delta_scale */
i_tmp
=
bs_read
(
&
s
,
1
);
i_nextscale
=
(
i_lastscale
+
i_tmp
+
256
)
%
256
;
...
...
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