[FFmpeg-cvslog] avformat/libzmq: fix check for zmq protocol prefix
Marton Balint
git at videolan.org
Tue Sep 3 00:37:16 EEST 2024
ffmpeg | branch: release/4.4 | Marton Balint <cus at passwd.hu> | Mon Aug 26 23:07:35 2024 +0200| [bd1619da10d24011c61601d31a4ddf145e1e15a6] | committer: Marton Balint
avformat/libzmq: fix check for zmq protocol prefix
Fixes ticket #11134.
Signed-off-by: Marton Balint <cus at passwd.hu>
(cherry picked from commit a87a96105e9150dba07e3a660e41f78557f3356c)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bd1619da10d24011c61601d31a4ddf145e1e15a6
---
libavformat/libzmq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the ffmpeg-cvslog
mailing list