Browse Source

file: Fix handling of windows named pipes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Martin Sliwka Michael Niedermayer 13 years ago
parent
commit
9b6f2c7483
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/file.c

+ 1
- 1
libavformat/file.c View File

@@ -99,7 +99,7 @@ static int64_t file_seek(URLContext *h, int64_t pos, int whence)
if (whence == AVSEEK_SIZE) {
struct stat st;
int ret = fstat(fd, &st);
return ret < 0 ? AVERROR(errno) : st.st_size;
return ret < 0 ? AVERROR(errno) : (S_ISFIFO(st.st_mode) ? 0 : st.st_size);
}
return lseek(fd, pos, whence);
}


Loading…
Cancel
Save