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
9a2028d4
Commit
9a2028d4
authored
Oct 29, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/frei0r: correctly handle paths longer than 1023 chars
parent
af9ec3dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vf_frei0r.c
libavfilter/vf_frei0r.c
+4
-2
No files found.
libavfilter/vf_frei0r.c
View file @
9a2028d4
...
@@ -236,9 +236,11 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
...
@@ -236,9 +236,11 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
av_free
(
path
);
av_free
(
path
);
}
}
if
(
!
frei0r
->
dl_handle
&&
(
path
=
getenv
(
"HOME"
)))
{
if
(
!
frei0r
->
dl_handle
&&
(
path
=
getenv
(
"HOME"
)))
{
char
prefix
[
1024
];
char
*
prefix
=
av_asprintf
(
"%s/.frei0r-1/lib/"
,
path
);
snprintf
(
prefix
,
sizeof
(
prefix
),
"%s/.frei0r-1/lib/"
,
path
);
if
(
!
prefix
)
return
AVERROR
(
ENOMEM
);
frei0r
->
dl_handle
=
load_path
(
ctx
,
prefix
,
dl_name
);
frei0r
->
dl_handle
=
load_path
(
ctx
,
prefix
,
dl_name
);
av_free
(
prefix
);
}
}
if
(
!
frei0r
->
dl_handle
)
if
(
!
frei0r
->
dl_handle
)
frei0r
->
dl_handle
=
load_path
(
ctx
,
"/usr/local/lib/frei0r-1/"
,
dl_name
);
frei0r
->
dl_handle
=
load_path
(
ctx
,
"/usr/local/lib/frei0r-1/"
,
dl_name
);
...
...
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