aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2024-08-26 23:07:35 +0200
committerMarton Balint <cus@passwd.hu>2024-09-02 22:51:17 +0200
commita87a96105e9150dba07e3a660e41f78557f3356c (patch)
tree9631b62d9c9cecbb67d9ba52a8525af7091fd47a
parent90f68f7b2d2c215e98cea1d955fb37605ae89585 (diff)
downloadffmpeg-a87a96105e9150dba07e3a660e41f78557f3356c.tar.gz
avformat/libzmq: fix check for zmq protocol prefix
Fixes ticket #11134. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavformat/libzmq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/libzmq.c b/libavformat/libzmq.c
index f4bb849e46..da84efee73 100644
--- a/libavformat/libzmq.c
+++ b/libavformat/libzmq.c
@@ -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);
}