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
ddda9cee
Commit
ddda9cee
authored
Jun 07, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver: Check for ffio_set_buf_size() failure
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0023ea4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
ffserver.c
ffserver.c
+13
-2
No files found.
ffserver.c
View file @
ddda9cee
...
...
@@ -2065,7 +2065,13 @@ static int open_input_stream(HTTPContext *c, const char *info)
}
/* set buffer size */
if
(
buf_size
>
0
)
ffio_set_buf_size
(
s
->
pb
,
buf_size
);
if
(
buf_size
>
0
)
{
ret
=
ffio_set_buf_size
(
s
->
pb
,
buf_size
);
if
(
ret
<
0
)
{
http_log
(
"Failed to set buffer size
\n
"
);
return
ret
;
}
}
s
->
flags
|=
AVFMT_FLAG_GENPTS
;
c
->
fmt_in
=
s
;
...
...
@@ -3595,7 +3601,12 @@ static void build_feed_streams(void)
if
(
avformat_open_input
(
&
s
,
feed
->
feed_filename
,
NULL
,
NULL
)
>=
0
)
{
/* set buffer size */
ffio_set_buf_size
(
s
->
pb
,
FFM_PACKET_SIZE
);
int
ret
=
ffio_set_buf_size
(
s
->
pb
,
FFM_PACKET_SIZE
);
if
(
ret
<
0
)
{
http_log
(
"Failed to set buffer size
\n
"
);
exit
(
1
);
}
/* Now see if it matches */
if
(
s
->
nb_streams
==
feed
->
nb_streams
)
{
matches
=
1
;
...
...
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