avio: Use AVERROR_PROTOCOL_NOT_FOUND
When the protocol is missing ffurl_alloc() should return
AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT).
Bug-Id: 577
CC: libav-stable@libav.org
(cherry picked from commit ea71aafd68
)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:

committed by
Reinhard Tartler

parent
0e8ae6d10c
commit
d6d2617d07
@@ -197,7 +197,7 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
|
|||||||
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
|
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
|
||||||
}
|
}
|
||||||
*puc = NULL;
|
*puc = NULL;
|
||||||
return AVERROR(ENOENT);
|
return AVERROR_PROTOCOL_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ffurl_open(URLContext **puc, const char *filename, int flags,
|
int ffurl_open(URLContext **puc, const char *filename, int flags,
|
||||||
|
Reference in New Issue
Block a user