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
52773a2c
Commit
52773a2c
authored
Nov 29, 2016
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/hwcontext_cuda: check for missing pixel format
parent
88281a52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
hwcontext_cuda.c
libavutil/hwcontext_cuda.c
+3
-0
No files found.
libavutil/hwcontext_cuda.c
View file @
52773a2c
...
...
@@ -117,6 +117,9 @@ static int cuda_frames_init(AVHWFramesContext *ctx)
case
AV_PIX_FMT_P016
:
size
=
aligned_width
*
ctx
->
height
*
3
;
break
;
default:
av_log
(
ctx
,
AV_LOG_ERROR
,
"BUG: Pixel format missing from size calculation."
);
return
AVERROR_BUG
;
}
ctx
->
internal
->
pool_internal
=
av_buffer_pool_init2
(
size
,
ctx
,
cuda_pool_alloc
,
NULL
);
...
...
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