diff options
author | Martin Storsjö <martin@martin.st> | 2011-01-02 14:32:18 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-10-12 14:48:45 +0300 |
commit | 30eae325302a99fd6c3051c34b60a605765e026c (patch) | |
tree | 777a7f8194cef2a9d64dd21a3fa21e2c7e7606a0 /libavformat/rtsp.c | |
parent | bfc6db4477cd1ca6c32ab533783238cf8381f177 (diff) | |
download | ffmpeg-30eae325302a99fd6c3051c34b60a605765e026c.tar.gz |
rtsp: Parse the x-Accept-Dynamic-Rate header
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index ff4d16a45b..ba104d24b8 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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); } } |