1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/libzmq: fix check for zmq protocol prefix

Fixes ticket #11134.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2024-08-26 23:07:35 +02:00
parent 90f68f7b2d
commit a87a96105e

View File

@ -94,7 +94,7 @@ static int zmq_proto_open(URLContext *h, const char *uri, int flags)
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);
return AVERROR(EINVAL);
}