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
69b06ed4
Commit
69b06ed4
authored
Apr 12, 2016
by
Mark Thompson
Committed by
Anton Khirnov
Apr 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi_encode: Add support for codec-local options
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
6e8f66fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
vaapi_encode.c
libavcodec/vaapi_encode.c
+1
-0
vaapi_encode.h
libavcodec/vaapi_encode.h
+5
-0
No files found.
libavcodec/vaapi_encode.c
View file @
69b06ed4
...
...
@@ -905,6 +905,7 @@ av_cold int ff_vaapi_encode_init(AVCodecContext *avctx,
}
ctx
->
codec
=
type
;
ctx
->
codec_options
=
ctx
->
codec_options_data
;
ctx
->
priv_data
=
av_mallocz
(
type
->
priv_data_size
);
if
(
!
ctx
->
priv_data
)
{
...
...
libavcodec/vaapi_encode.h
View file @
69b06ed4
...
...
@@ -172,6 +172,11 @@ typedef struct VAAPIEncodeContext {
int
p_counter
;
int
end_of_stream
;
// Codec-local options are allocated to follow this structure in
// memory (in the AVCodec definition, set priv_data_size to
// sizeof(VAAPIEncodeContext) + sizeof(VAAPIEncodeFooOptions)).
void
*
codec_options
;
char
codec_options_data
[
0
];
}
VAAPIEncodeContext
;
...
...
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