mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avformat/libzmq: fix check for zmq protocol prefix
Fixes ticket #11134. Signed-off-by: Marton Balint <cus@passwd.hu> (cherry picked from commit a87a96105e9150dba07e3a660e41f78557f3356c)
This commit is contained in:
parent
f71076c009
commit
a041b7be2c
@ -94,7 +94,7 @@ static int zmq_proto_open(URLContext *h, const char *uri, int flags)
|
|||||||
return AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (av_strstart(uri, "zmq:", &uri)) {
|
if (!av_strstart(uri, "zmq:", &uri)) {
|
||||||
av_log(h, AV_LOG_ERROR, "URL %s lacks prefix\n", uri);
|
av_log(h, AV_LOG_ERROR, "URL %s lacks prefix\n", uri);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user