Browse Source

file protocol: handle the file: protocol string in file_check

This is consistent with what file_open() does.

CC: libav-stable@libav.org
tags/n3.3
Anton Khirnov 8 years ago
parent
commit
20b75970e4
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      libavformat/file.c

+ 6
- 1
libavformat/file.c View File

@@ -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);



Loading…
Cancel
Save