Signed-off-by: Stephan Holljes <[email protected]>
---
libavformat/http.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavformat/http.c b/libavformat/http.c
index 4f6716a..3fad43d 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -556,6 +556,14 @@ static int process_line(URLContext *h, char *line, int
line_count,
p = line;
if (line_count == 0) {
+ if (s->listen) {
+ while (!av_isspace(*p))
+ p++;
+ s->method = av_malloc(p - line);
+ if (!s->method)
+ return AVERROR(ENOMEM);
+ av_strlcpy(s->method, line, p - line + 1);
+ }
while (!av_isspace(*p) && *p != '\0')
p++;
while (av_isspace(*p))
--
2.1.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel