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
0faf3c3a
Commit
0faf3c3a
authored
Oct 10, 2016
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_hwupload_cuda: check ff_formats_ref for errors
parent
b0ca90d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
vf_hwupload_cuda.c
libavfilter/vf_hwupload_cuda.c
+9
-2
No files found.
libavfilter/vf_hwupload_cuda.c
View file @
0faf3c3a
...
...
@@ -54,6 +54,8 @@ static av_cold void cudaupload_uninit(AVFilterContext *ctx)
static
int
cudaupload_query_formats
(
AVFilterContext
*
ctx
)
{
int
ret
;
static
const
enum
AVPixelFormat
input_pix_fmts
[]
=
{
AV_PIX_FMT_NV12
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_NONE
,
...
...
@@ -64,8 +66,13 @@ static int cudaupload_query_formats(AVFilterContext *ctx)
AVFilterFormats
*
in_fmts
=
ff_make_format_list
(
input_pix_fmts
);
AVFilterFormats
*
out_fmts
=
ff_make_format_list
(
output_pix_fmts
);
ff_formats_ref
(
in_fmts
,
&
ctx
->
inputs
[
0
]
->
out_formats
);
ff_formats_ref
(
out_fmts
,
&
ctx
->
outputs
[
0
]
->
in_formats
);
ret
=
ff_formats_ref
(
in_fmts
,
&
ctx
->
inputs
[
0
]
->
out_formats
);
if
(
ret
<
0
)
return
ret
;
ret
=
ff_formats_ref
(
out_fmts
,
&
ctx
->
outputs
[
0
]
->
in_formats
);
if
(
ret
<
0
)
return
ret
;
return
0
;
}
...
...
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