[FFmpeg-cvslog] avformat/libzmq: fix check for zmq protocol prefix
Marton Balint
git at videolan.org
Tue Sep 3 00:34:30 EEST 2024
ffmpeg | branch: release/4.3 | Marton Balint <cus at passwd.hu> | Mon Aug 26 23:07:35 2024 +0200| [c5a083a50b9d98b2005a658e25d371356b10c0a7] | 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=c5a083a50b9d98b2005a658e25d371356b10c0a7
---
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