Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d4996a60
Commit
d4996a60
authored
Jan 02, 2020
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvdec_mpeg12: set field flags
parent
e47a9546
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
nvdec_mpeg12.c
libavcodec/nvdec_mpeg12.c
+4
-0
No files found.
libavcodec/nvdec_mpeg12.c
View file @
d4996a60
...
...
@@ -50,6 +50,10 @@ static int nvdec_mpeg12_start_frame(AVCodecContext *avctx, const uint8_t *buffer
.
FrameHeightInMbs
=
(
cur_frame
->
height
+
15
)
/
16
,
.
CurrPicIdx
=
cf
->
idx
,
.
field_pic_flag
=
s
->
picture_structure
!=
PICT_FRAME
,
.
bottom_field_flag
=
s
->
picture_structure
==
PICT_BOTTOM_FIELD
,
.
second_field
=
s
->
picture_structure
!=
PICT_FRAME
&&
!
s
->
first_field
,
.
intra_pic_flag
=
s
->
pict_type
==
AV_PICTURE_TYPE_I
,
.
ref_pic_flag
=
s
->
pict_type
==
AV_PICTURE_TYPE_I
||
s
->
pict_type
==
AV_PICTURE_TYPE_P
,
...
...
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