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
0aaaca25
Commit
0aaaca25
authored
Dec 12, 2018
by
Zhong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/qsvenc: set pict_type to be I for IDR frames.
Signed-off-by:
Zhong Li
<
zhong.li@intel.com
>
parent
e92ce340
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
qsvenc.c
libavcodec/qsvenc.c
+3
-4
No files found.
libavcodec/qsvenc.c
View file @
0aaaca25
...
...
@@ -1341,11 +1341,10 @@ int ff_qsv_encode(AVCodecContext *avctx, QSVEncContext *q,
new_pkt
.
pts
=
av_rescale_q
(
bs
->
TimeStamp
,
(
AVRational
){
1
,
90000
},
avctx
->
time_base
);
new_pkt
.
size
=
bs
->
DataLength
;
if
(
bs
->
FrameType
&
MFX_FRAMETYPE_IDR
||
bs
->
FrameType
&
MFX_FRAMETYPE_xIDR
)
if
(
bs
->
FrameType
&
MFX_FRAMETYPE_IDR
||
bs
->
FrameType
&
MFX_FRAMETYPE_xIDR
)
{
new_pkt
.
flags
|=
AV_PKT_FLAG_KEY
;
if
(
bs
->
FrameType
&
MFX_FRAMETYPE_I
||
bs
->
FrameType
&
MFX_FRAMETYPE_xI
)
pict_type
=
AV_PICTURE_TYPE_I
;
}
else
if
(
bs
->
FrameType
&
MFX_FRAMETYPE_I
||
bs
->
FrameType
&
MFX_FRAMETYPE_xI
)
pict_type
=
AV_PICTURE_TYPE_I
;
else
if
(
bs
->
FrameType
&
MFX_FRAMETYPE_P
||
bs
->
FrameType
&
MFX_FRAMETYPE_xP
)
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