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
aedb87c5
Commit
aedb87c5
authored
Oct 31, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsh: move location storage into context
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
df98446b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mmsh.c
libavformat/mmsh.c
+4
-3
No files found.
libavformat/mmsh.c
View file @
aedb87c5
...
...
@@ -55,6 +55,7 @@ typedef enum {
typedef
struct
{
MMSContext
mms
;
uint8_t
location
[
1024
];
int
request_seq
;
///< request packet sequence
int
chunk_seq
;
///< data packet sequence
}
MMSHContext
;
...
...
@@ -213,7 +214,7 @@ static int get_http_header_data(MMSHContext *mmsh)
static
int
mmsh_open
(
URLContext
*
h
,
const
char
*
uri
,
int
flags
)
{
int
i
,
port
,
err
;
char
httpname
[
256
],
path
[
256
],
host
[
128
]
,
location
[
1024
]
;
char
httpname
[
256
],
path
[
256
],
host
[
128
];
char
*
stream_selection
=
NULL
;
char
headers
[
1024
];
MMSHContext
*
mmsh
;
...
...
@@ -224,10 +225,10 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
return
AVERROR
(
ENOMEM
);
mmsh
->
request_seq
=
h
->
is_streamed
=
1
;
mms
=
&
mmsh
->
mms
;
av_strlcpy
(
location
,
uri
,
sizeof
(
location
));
av_strlcpy
(
mmsh
->
location
,
uri
,
sizeof
(
mmsh
->
location
));
av_url_split
(
NULL
,
0
,
NULL
,
0
,
host
,
sizeof
(
host
),
&
port
,
path
,
sizeof
(
path
),
location
);
host
,
sizeof
(
host
),
&
port
,
path
,
sizeof
(
path
),
mmsh
->
location
);
if
(
port
<
0
)
port
=
80
;
// default mmsh protocol port
ff_url_join
(
httpname
,
sizeof
(
httpname
),
"http"
,
NULL
,
host
,
port
,
"%s"
,
path
);
...
...
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