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
41e983f1
Commit
41e983f1
authored
Jan 21, 2015
by
Derek Buitenhuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libx265: Pass through user-set frame type
Signed-off-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parent
a30fd828
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
libx265.c
libavcodec/libx265.c
+5
-0
No files found.
libavcodec/libx265.c
View file @
41e983f1
...
...
@@ -224,6 +224,11 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
x265pic
.
pts
=
pic
->
pts
;
x265pic
.
bitDepth
=
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
)
->
comp
[
0
].
depth_minus1
+
1
;
x265pic
.
sliceType
=
pic
->
pict_type
==
AV_PICTURE_TYPE_I
?
X265_TYPE_I
:
pic
->
pict_type
==
AV_PICTURE_TYPE_P
?
X265_TYPE_P
:
pic
->
pict_type
==
AV_PICTURE_TYPE_B
?
X265_TYPE_B
:
X265_TYPE_AUTO
;
}
ret
=
x265_encoder_encode
(
ctx
->
encoder
,
&
nal
,
&
nnal
,
...
...
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