Commit 20b75970 authored by Anton Khirnov's avatar Anton Khirnov

file protocol: handle the file: protocol string in file_check

This is consistent with what file_open() does.

CC: libav-stable@libav.org
parent 7d8d726b
......@@ -82,8 +82,13 @@ static int file_get_handle(URLContext *h)
static int file_check(URLContext *h, int mask)
{
const char *filename = h->filename;
struct stat st;
int ret = stat(h->filename, &st);
int ret;
av_strstart(filename, "file:", &filename);
ret = stat(filename, &st);
if (ret < 0)
return AVERROR(errno);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment