[FFmpeg-devel] [PATCH] avformat/libzmq: fix check for zmq protocol prefix
Marton Balint
cus at passwd.hu
Sat Aug 31 19:49:22 EEST 2024
On Mon, 26 Aug 2024, Marton Balint wrote:
> Fixes ticket #11134.
Will apply and backport.
Regards,
Marton
>
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
> 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);
> }
> --
> 2.43.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-devel
mailing list