mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
rtsp: Parse the x-Accept-Dynamic-Rate header
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
bfc6db4477
commit
30eae32530
2 changed files with 6 additions and 0 deletions
|
|
@ -808,6 +808,9 @@ void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
|
|||
if (strstr(p, "GET_PARAMETER") &&
|
||||
method && !strcmp(method, "OPTIONS"))
|
||||
rt->get_parameter_supported = 1;
|
||||
} else if (av_stristart(p, "x-Accept-Dynamic-Rate:", &p) && rt) {
|
||||
p += strspn(p, SPACE_CHARS);
|
||||
rt->accept_dynamic_rate = atoi(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -346,6 +346,9 @@ typedef struct RTSPState {
|
|||
* Option flags for the chained RTP muxer.
|
||||
*/
|
||||
int rtp_muxer_flags;
|
||||
|
||||
/** Whether the server accepts the x-Dynamic-Rate header */
|
||||
int accept_dynamic_rate;
|
||||
} RTSPState;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue