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
f65285ab
Commit
f65285ab
authored
Jul 14, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: set sw_pix_fmt for hwaccel encoding
parent
d59641ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
utils.c
libavcodec/utils.c
+11
-0
No files found.
libavcodec/utils.c
View file @
f65285ab
...
...
@@ -1113,6 +1113,17 @@ FF_ENABLE_DEPRECATION_WARNINGS
ret
=
AVERROR
(
EINVAL
);
goto
free_and_end
;
}
if
(
avctx
->
sw_pix_fmt
!=
AV_PIX_FMT_NONE
&&
avctx
->
sw_pix_fmt
!=
frames_ctx
->
sw_format
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Mismatching AVCodecContext.sw_pix_fmt (%s) "
"and AVHWFramesContext.sw_format (%s)
\n
"
,
av_get_pix_fmt_name
(
avctx
->
sw_pix_fmt
),
av_get_pix_fmt_name
(
frames_ctx
->
sw_format
));
ret
=
AVERROR
(
EINVAL
);
goto
free_and_end
;
}
avctx
->
sw_pix_fmt
=
frames_ctx
->
sw_format
;
}
}
...
...
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