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
7e24aa0c
Commit
7e24aa0c
authored
Mar 21, 2009
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust write index if not set
Originally committed as revision 18097 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a9c6fc7b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ffserver.c
ffserver.c
+3
-1
No files found.
ffserver.c
View file @
7e24aa0c
...
...
@@ -2419,6 +2419,8 @@ static int http_start_receive_data(HTTPContext *c)
http_log
(
"Error reading write index from feed file: %s
\n
"
,
strerror
(
errno
));
return
-
1
;
}
c
->
stream
->
feed_write_index
=
FFMAX
(
ffm_read_write_index
(
fd
),
FFM_PACKET_SIZE
);
c
->
stream
->
feed_size
=
lseek
(
fd
,
0
,
SEEK_END
);
lseek
(
fd
,
0
,
SEEK_SET
);
...
...
@@ -3560,7 +3562,7 @@ static void build_feed_streams(void)
exit
(
1
);
}
feed
->
feed_write_index
=
ffm_read_write_index
(
fd
);
feed
->
feed_write_index
=
FFMAX
(
ffm_read_write_index
(
fd
),
FFM_PACKET_SIZE
);
feed
->
feed_size
=
lseek
(
fd
,
0
,
SEEK_END
);
/* ensure that we do not wrap before the end of file */
if
(
feed
->
feed_max_size
&&
feed
->
feed_max_size
<
feed
->
feed_size
)
...
...
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