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
b6f4f0b1
Commit
b6f4f0b1
authored
Feb 09, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/cuvid: add format mismatch debug logs
parent
ce79410b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
cuvid.c
libavcodec/cuvid.c
+5
-0
No files found.
libavcodec/cuvid.c
View file @
b6f4f0b1
...
...
@@ -207,6 +207,11 @@ static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* form
hwframe_ctx
->
format
!=
AV_PIX_FMT_CUDA
||
hwframe_ctx
->
sw_format
!=
avctx
->
sw_pix_fmt
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"AVHWFramesContext is already initialized with incompatible parameters
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"width: %d <-> %d
\n
"
,
hwframe_ctx
->
width
,
avctx
->
width
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"height: %d <-> %d
\n
"
,
hwframe_ctx
->
height
,
avctx
->
height
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"format: %s <-> cuda
\n
"
,
av_get_pix_fmt_name
(
hwframe_ctx
->
format
));
av_log
(
avctx
,
AV_LOG_DEBUG
,
"sw_format: %s <-> %s
\n
"
,
av_get_pix_fmt_name
(
hwframe_ctx
->
sw_format
),
av_get_pix_fmt_name
(
avctx
->
sw_pix_fmt
));
ctx
->
internal_error
=
AVERROR
(
EINVAL
);
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