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
779951f7
Commit
779951f7
authored
Dec 28, 2019
by
Zhong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/qsvdec: disable gpu copy when not supported
Signed-off-by:
Zhong Li
<
zhongli_dev@126.com
>
parent
9fff5c40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
qsvdec.c
libavcodec/qsvdec.c
+4
-2
No files found.
libavcodec/qsvdec.c
View file @
779951f7
...
...
@@ -99,9 +99,11 @@ static int qsv_init_session(AVCodecContext *avctx, QSVContext *q, mfxSession ses
int
ret
;
if
(
q
->
gpu_copy
==
MFX_GPUCOPY_ON
&&
!
(
q
->
iopattern
&
MFX_IOPATTERN_OUT_SYSTEM_MEMORY
))
!
(
q
->
iopattern
&
MFX_IOPATTERN_OUT_SYSTEM_MEMORY
))
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"GPU-accelerated memory copy "
"only works in MFX_IOPATTERN_OUT_SYSTEM_MEMORY.
\n
"
);
"only works in system memory mode.
\n
"
);
q
->
gpu_copy
=
MFX_GPUCOPY_OFF
;
}
if
(
session
)
{
q
->
session
=
session
;
}
else
if
(
hw_frames_ref
)
{
...
...
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