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
30416185
Commit
30416185
authored
Oct 15, 2015
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg/videotoolbox: protect UTGetOSTypeFromString on both VDA and VT
parent
9898ef81
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ffmpeg_videotoolbox.c
ffmpeg_videotoolbox.c
+6
-0
No files found.
ffmpeg_videotoolbox.c
View file @
30416185
...
...
@@ -157,7 +157,13 @@ int videotoolbox_init(AVCodecContext *s)
CFStringRef
pixfmt_str
=
CFStringCreateWithCString
(
kCFAllocatorDefault
,
videotoolbox_pixfmt
,
kCFStringEncodingUTF8
);
#if HAVE_UTGETOSTYPEFROMSTRING
vtctx
->
cv_pix_fmt_type
=
UTGetOSTypeFromString
(
pixfmt_str
);
#else
av_log
(
s
,
loglevel
,
"UTGetOSTypeFromString() is not available "
"on this platform, %s pixel format can not be honored from "
"the command line
\n
"
,
videotoolbox_pixfmt
);
#endif
ret
=
av_videotoolbox_default_init2
(
s
,
vtctx
);
CFRelease
(
pixfmt_str
);
}
...
...
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