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
d40c0e4a
Commit
d40c0e4a
authored
Sep 08, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver: fix order of evaluation bugs
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0e78e575
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ffserver.c
ffserver.c
+8
-3
No files found.
ffserver.c
View file @
d40c0e4a
...
...
@@ -560,9 +560,11 @@ static void start_multicast(void)
default_port
=
6000
;
for
(
stream
=
first_stream
;
stream
!=
NULL
;
stream
=
stream
->
next
)
{
if
(
stream
->
is_multicast
)
{
unsigned
random0
=
av_lfg_get
(
&
random_state
);
unsigned
random1
=
av_lfg_get
(
&
random_state
);
/* open the RTP connection */
snprintf
(
session_id
,
sizeof
(
session_id
),
"%08x%08x"
,
av_lfg_get
(
&
random_state
),
av_lfg_get
(
&
random_state
)
);
random0
,
random1
);
/* choose a port if none given */
if
(
stream
->
multicast_port
==
0
)
{
...
...
@@ -3092,9 +3094,12 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url,
found:
/* generate session id if needed */
if
(
h
->
session_id
[
0
]
==
'\0'
)
if
(
h
->
session_id
[
0
]
==
'\0'
)
{
unsigned
random0
=
av_lfg_get
(
&
random_state
);
unsigned
random1
=
av_lfg_get
(
&
random_state
);
snprintf
(
h
->
session_id
,
sizeof
(
h
->
session_id
),
"%08x%08x"
,
av_lfg_get
(
&
random_state
),
av_lfg_get
(
&
random_state
));
random0
,
random1
);
}
/* find rtp session, and create it if none found */
rtp_c
=
find_rtp_session
(
h
->
session_id
);
...
...
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