Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
7b9643c0
Commit
7b9643c0
authored
Feb 09, 2018
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packetizer: hevc: rework progressive test
parent
02f402b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
modules/packetizer/hevc_nal.c
modules/packetizer/hevc_nal.c
+14
-7
No files found.
modules/packetizer/hevc_nal.c
View file @
7b9643c0
...
...
@@ -1577,15 +1577,22 @@ bool hevc_frame_is_progressive( const hevc_sequence_parameter_set_t *p_sps,
p_sps
->
vui
.
field_seq_flag
)
return
false
;
if
(
p_sps
->
profile_tier_level
.
general
.
interlaced_source_flag
&&
!
p_sps
->
profile_tier_level
.
general
.
progressive_source_flag
)
return
false
;
if
(
p_timing
&&
p_sps
->
vui
.
frame_field_info_present_flag
)
const
hevc_inner_profile_tier_level_t
*
p_profile
=
&
p_sps
->
profile_tier_level
.
general
;
/* 1 & 0, 0 & 1, global */
if
(
p_profile
->
progressive_source_flag
!=
p_profile
->
interlaced_source_flag
)
{
return
p_profile
->
progressive_source_flag
>
p_profile
->
interlaced_source_flag
;
}
/* 1 & 1, defined in SEI */
else
if
(
p_profile
->
progressive_source_flag
)
{
if
(
p_timing
->
source_scan_type
<
2
)
return
p_timing
->
source_scan_type
!=
0
;
if
(
p_timing
&&
p_sps
->
vui
.
frame_field_info_present_flag
)
{
if
(
p_timing
->
source_scan_type
<
2
)
return
p_timing
->
source_scan_type
!=
0
;
}
}
/* else 0 & 0, unspec */
return
true
;
}
...
...
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