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
e18ba2df
Commit
e18ba2df
authored
Nov 07, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_dxva2: make sure the sw frame format is the right one during transfer
parent
5a1d605c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
hwcontext_dxva2.c
libavutil/hwcontext_dxva2.c
+6
-0
No files found.
libavutil/hwcontext_dxva2.c
View file @
e18ba2df
...
...
@@ -315,6 +315,9 @@ static int dxva2_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
AVFrame
*
map
;
int
ret
;
if
(
src
->
format
!=
ctx
->
sw_format
)
return
AVERROR
(
ENOSYS
);
map
=
av_frame_alloc
();
if
(
!
map
)
return
AVERROR
(
ENOMEM
);
...
...
@@ -339,6 +342,9 @@ static int dxva2_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
ptrdiff_t
src_linesize
[
4
],
dst_linesize
[
4
];
int
ret
,
i
;
if
(
dst
->
format
!=
ctx
->
sw_format
)
return
AVERROR
(
ENOSYS
);
map
=
av_frame_alloc
();
if
(
!
map
)
return
AVERROR
(
ENOMEM
);
...
...
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