Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
62ea5ae2
Commit
62ea5ae2
authored
Jan 11, 2015
by
Georg Lippitsch
Committed by
Michael Niedermayer
Feb 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/decklink_common: Fix Decklink for Mac
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
97a27065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
decklink_common.cpp
libavdevice/decklink_common.cpp
+10
-0
No files found.
libavdevice/decklink_common.cpp
View file @
62ea5ae2
...
...
@@ -70,6 +70,16 @@ static char *dup_wchar_to_utf8(wchar_t *w)
#define DECKLINK_STR OLECHAR *
#define DECKLINK_STRDUP dup_wchar_to_utf8
#define DECKLINK_FREE(s) SysFreeString(s)
#elif __APPLE__
static
char
*
dup_cfstring_to_utf8
(
CFStringRef
w
)
{
char
s
[
256
];
CFStringGetCString
(
w
,
s
,
255
,
kCFStringEncodingUTF8
);
return
av_strdup
(
s
);
}
#define DECKLINK_STR const __CFString *
#define DECKLINK_STRDUP dup_cfstring_to_utf8
#define DECKLINK_FREE(s) free((void *) s)
#else
#define DECKLINK_STR const char *
#define DECKLINK_STRDUP av_strdup
...
...
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