Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
69364a06
Commit
69364a06
authored
Jun 20, 2022
by
Nil Admirari
Committed by
Martin Storsjö
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavfilter/vf_frei0r.c: Use UTF-8 version of getenv()
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
c381f541
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
vf_frei0r.c
libavfilter/vf_frei0r.c
+10
-4
No files found.
libavfilter/vf_frei0r.c
View file @
69364a06
...
...
@@ -31,6 +31,7 @@
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/eval.h"
#include "libavutil/getenv_utf8.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
...
...
@@ -204,7 +205,7 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
}
/* see: http://frei0r.dyne.org/codedoc/html/group__pluglocations.html */
if
(
(
path
=
av_strdup
(
getenv
(
"FREI0R_PATH"
))
))
{
if
(
path
=
getenv_dup
(
"FREI0R_PATH"
))
{
#ifdef _WIN32
const
char
*
separator
=
";"
;
#else
...
...
@@ -231,12 +232,17 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
if
(
ret
<
0
)
return
ret
;
}
if
(
!
s
->
dl_handle
&&
(
path
=
getenv
(
"HOME"
)))
{
if
(
!
s
->
dl_handle
&&
(
path
=
getenv
_utf8
(
"HOME"
)))
{
char
*
prefix
=
av_asprintf
(
"%s/.frei0r-1/lib/"
,
path
);
if
(
!
prefix
)
return
AVERROR
(
ENOMEM
);
if
(
!
prefix
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
home_path_end
;
}
ret
=
load_path
(
ctx
,
&
s
->
dl_handle
,
prefix
,
dl_name
);
av_free
(
prefix
);
home_path_end:
freeenv_utf8
(
path
);
if
(
ret
<
0
)
return
ret
;
}
...
...
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