[FFmpeg-cvslog] avformat/libzmq: fix check for zmq protocol prefix
Marton Balint
git at videolan.org
Tue Sep 3 00:17:45 EEST 2024
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Mon Aug 26 23:07:35 2024 +0200| [a87a96105e9150dba07e3a660e41f78557f3356c] | committer: Marton Balint
avformat/libzmq: fix check for zmq protocol prefix
Fixes ticket #11134.
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a87a96105e9150dba07e3a660e41f78557f3356c
---
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