You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
file: fix 10l error in access() check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -85,7 +85,7 @@ static int file_get_handle(URLContext *h)
|
|||||||
|
|
||||||
static int file_check(URLContext *h, int mask)
|
static int file_check(URLContext *h, int mask)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_ACCESS) && defined(R_OK)
|
#if HAVE_ACCESS && defined(R_OK)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
if (access(h->filename, F_OK) < 0)
|
if (access(h->filename, F_OK) < 0)
|
||||||
return AVERROR(errno);
|
return AVERROR(errno);
|
||||||
|
|||||||
Reference in New Issue
Block a user