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
2d563d2f
Commit
2d563d2f
authored
Aug 08, 2007
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic: simplify some constructs
Originally committed as revision 9989 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6ff3f3e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
ffserver.c
ffserver.c
+5
-11
No files found.
ffserver.c
View file @
2d563d2f
...
...
@@ -1507,11 +1507,8 @@ static int http_parse_request(HTTPContext *c)
break
;
}
if
(
wmpc
)
{
if
(
modify_current_stream
(
wmpc
,
ratebuf
))
{
wmpc
->
switch_pending
=
1
;
}
}
if
(
wmpc
&&
modify_current_stream
(
wmpc
,
ratebuf
))
wmpc
->
switch_pending
=
1
;
}
snprintf
(
msg
,
sizeof
(
msg
),
"POST command not handled"
);
...
...
@@ -1840,13 +1837,10 @@ static void compute_stats(HTTPContext *c)
bitrate
=
0
;
if
(
c1
->
stream
)
{
for
(
j
=
0
;
j
<
c1
->
stream
->
nb_streams
;
j
++
)
{
if
(
!
c1
->
stream
->
feed
)
{
if
(
!
c1
->
stream
->
feed
)
bitrate
+=
c1
->
stream
->
streams
[
j
]
->
codec
->
bit_rate
;
}
else
{
if
(
c1
->
feed_streams
[
j
]
>=
0
)
{
bitrate
+=
c1
->
stream
->
feed
->
streams
[
c1
->
feed_streams
[
j
]]
->
codec
->
bit_rate
;
}
}
else
if
(
c1
->
feed_streams
[
j
]
>=
0
)
bitrate
+=
c1
->
stream
->
feed
->
streams
[
c1
->
feed_streams
[
j
]]
->
codec
->
bit_rate
;
}
}
...
...
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