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
92a0a6be
Commit
92a0a6be
authored
Apr 27, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_vaapi: Fix compilation with libva versions < 1.4.0
The BufferHandle API was added in libva 1.4.0 / VAAPI 0.36.0.
parent
b473e768
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
hwcontext_vaapi.c
libavutil/hwcontext_vaapi.c
+5
-0
No files found.
libavutil/hwcontext_vaapi.c
View file @
92a0a6be
...
...
@@ -1164,6 +1164,7 @@ fail:
}
#endif
#if VA_CHECK_VERSION(0, 36, 0)
typedef
struct
VAAPIDRMImageBufferMapping
{
VAImage
image
;
VABufferInfo
buffer_info
;
...
...
@@ -1323,6 +1324,7 @@ fail:
av_freep
(
&
mapping
);
return
err
;
}
#endif
static
int
vaapi_map_to_drm
(
AVHWFramesContext
*
hwfc
,
AVFrame
*
dst
,
const
AVFrame
*
src
,
int
flags
)
...
...
@@ -1333,7 +1335,10 @@ static int vaapi_map_to_drm(AVHWFramesContext *hwfc, AVFrame *dst,
if
(
err
!=
AVERROR
(
ENOSYS
))
return
err
;
#endif
#if VA_CHECK_VERSION(0, 36, 0)
return
vaapi_map_to_drm_abh
(
hwfc
,
dst
,
src
,
flags
);
#endif
return
AVERROR
(
ENOSYS
);
}
#endif
/* CONFIG_LIBDRM */
...
...
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