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
Steve Lhomme
VLC
Commits
b7b9ddb4
Commit
b7b9ddb4
authored
Mar 25, 2015
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packetizer: h264: set interlacing flags
parent
d7526718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
modules/packetizer/h264.c
modules/packetizer/h264.c
+29
-0
No files found.
modules/packetizer/h264.c
View file @
b7b9ddb4
...
...
@@ -760,6 +760,35 @@ static block_t *OutputPicture( decoder_t *p_dec )
if
(
!
p_sys
->
b_header
)
p_pic
->
i_flags
|=
BLOCK_FLAG_PREROLL
;
if
(
p_sys
->
b_frame_mbs_only
==
0
&&
p_sys
->
b_pic_struct_present_flag
)
{
switch
(
p_sys
->
i_pic_struct
)
{
case
1
:
if
(
p_sys
->
i_fields_dts
==
2
)
p_pic
->
i_flags
|=
BLOCK_FLAG_TOP_FIELD_FIRST
;
else
p_pic
->
i_flags
|=
BLOCK_FLAG_BOTTOM_FIELD_FIRST
;
break
;
case
3
:
case
5
:
p_pic
->
i_flags
|=
BLOCK_FLAG_TOP_FIELD_FIRST
;
break
;
case
2
:
if
(
p_sys
->
i_fields_dts
==
2
)
p_pic
->
i_flags
|=
BLOCK_FLAG_BOTTOM_FIELD_FIRST
;
else
p_pic
->
i_flags
|=
BLOCK_FLAG_TOP_FIELD_FIRST
;
break
;
case
4
:
case
6
:
p_pic
->
i_flags
|=
BLOCK_FLAG_BOTTOM_FIELD_FIRST
;
break
;
default:
break
;
}
}
p_sys
->
slice
.
i_frame_type
=
0
;
p_sys
->
p_frame
=
NULL
;
p_sys
->
i_frame_dts
=
VLC_TS_INVALID
;
...
...
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