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
193e43e6
Commit
193e43e6
authored
Feb 19, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_vaapi: Fix frames context creation with external attributes
parent
fabcbfba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hwcontext_vaapi.c
libavutil/hwcontext_vaapi.c
+2
-2
No files found.
libavutil/hwcontext_vaapi.c
View file @
193e43e6
...
...
@@ -475,9 +475,9 @@ static int vaapi_frames_init(AVHWFramesContext *hwfc)
int
need_memory_type
=
!
(
hwctx
->
driver_quirks
&
AV_VAAPI_DRIVER_QUIRK_ATTRIB_MEMTYPE
);
int
need_pixel_format
=
1
;
for
(
i
=
0
;
i
<
avfc
->
nb_attributes
;
i
++
)
{
if
(
ctx
->
attributes
[
i
].
type
==
VASurfaceAttribMemoryType
)
if
(
avfc
->
attributes
[
i
].
type
==
VASurfaceAttribMemoryType
)
need_memory_type
=
0
;
if
(
ctx
->
attributes
[
i
].
type
==
VASurfaceAttribPixelFormat
)
if
(
avfc
->
attributes
[
i
].
type
==
VASurfaceAttribPixelFormat
)
need_pixel_format
=
0
;
}
ctx
->
nb_attributes
=
...
...
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