mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avformat/libzmq: Check av_strstart()
Fixes: CID1453457 Unchecked return value Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 0263b6a48caaff839e4c28df15b299b89c7da92d) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c81fd6fd6d
commit
bf5ba9a170
@ -94,7 +94,10 @@ static int zmq_proto_open(URLContext *h, const char *uri, int flags)
|
||||
return AVERROR_EXTERNAL;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
/*publish during write*/
|
||||
if (h->flags & AVIO_FLAG_WRITE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user