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
fcd0298c
Commit
fcd0298c
authored
May 04, 2012
by
Jordi Ortiz
Committed by
Luca Barbato
May 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp: Add content-type message header parsing
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
b2e495af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
rtsp.c
libavformat/rtsp.c
+3
-0
rtsp.h
libavformat/rtsp.h
+5
-0
No files found.
libavformat/rtsp.c
View file @
fcd0298c
...
@@ -870,6 +870,9 @@ void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
...
@@ -870,6 +870,9 @@ void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
}
else
if
(
av_stristart
(
p
,
"x-Accept-Dynamic-Rate:"
,
&
p
)
&&
rt
)
{
}
else
if
(
av_stristart
(
p
,
"x-Accept-Dynamic-Rate:"
,
&
p
)
&&
rt
)
{
p
+=
strspn
(
p
,
SPACE_CHARS
);
p
+=
strspn
(
p
,
SPACE_CHARS
);
rt
->
accept_dynamic_rate
=
atoi
(
p
);
rt
->
accept_dynamic_rate
=
atoi
(
p
);
}
else
if
(
av_stristart
(
p
,
"Content-Type:"
,
&
p
))
{
p
+=
strspn
(
p
,
SPACE_CHARS
);
av_strlcpy
(
reply
->
content_type
,
p
,
sizeof
(
reply
->
content_type
));
}
}
}
}
...
...
libavformat/rtsp.h
View file @
fcd0298c
...
@@ -171,6 +171,11 @@ typedef struct RTSPMessageHeader {
...
@@ -171,6 +171,11 @@ typedef struct RTSPMessageHeader {
* returned
* returned
*/
*/
char
reason
[
256
];
char
reason
[
256
];
/**
* Content type header
*/
char
content_type
[
64
];
}
RTSPMessageHeader
;
}
RTSPMessageHeader
;
/**
/**
...
...
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