Merge commit '7395784ba72742b6daa62d35db4028e09f3fdf06'
* commit '7395784ba72742b6daa62d35db4028e09f3fdf06': rtmpproto: Check the return from ff_amf_read_string Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
36fcbc0076
@ -1953,6 +1953,13 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt)
|
||||
!strcmp(command, "publish")) {
|
||||
ret = ff_amf_read_string(&gbc, filename,
|
||||
sizeof(filename), &stringlen);
|
||||
if (ret) {
|
||||
if (ret == AVERROR(EINVAL))
|
||||
av_log(s, AV_LOG_ERROR, "Unable to parse stream name - name too long?\n");
|
||||
else
|
||||
av_log(s, AV_LOG_ERROR, "Unable to parse stream name\n");
|
||||
return ret;
|
||||
}
|
||||
// check with url
|
||||
if (s->filename) {
|
||||
pchar = strrchr(s->filename, '/');
|
||||
|
Loading…
x
Reference in New Issue
Block a user