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
a9ba9268
Commit
a9ba9268
authored
Nov 14, 2012
by
Clément Bœsch
Committed by
Clément Bœsch
Nov 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver: prefer av_asprintf over malloc+snprintf for Launch setting.
parent
66ff90f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
ffserver.c
ffserver.c
+1
-4
No files found.
ffserver.c
View file @
a9ba9268
...
...
@@ -4208,10 +4208,7 @@ static int parse_ffconfig(const char *filename)
feed
->
child_argv
[
i
]
=
av_strdup
(
arg
);
}
feed
->
child_argv
[
i
]
=
av_malloc
(
30
+
strlen
(
feed
->
filename
));
snprintf
(
feed
->
child_argv
[
i
],
30
+
strlen
(
feed
->
filename
),
"http://%s:%d/%s"
,
feed
->
child_argv
[
i
]
=
av_asprintf
(
"http://%s:%d/%s"
,
(
my_http_addr
.
sin_addr
.
s_addr
==
INADDR_ANY
)
?
"127.0.0.1"
:
inet_ntoa
(
my_http_addr
.
sin_addr
),
ntohs
(
my_http_addr
.
sin_port
),
feed
->
filename
);
...
...
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