mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
file: Fix handling of windows named pipes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
11153a9371
commit
9b6f2c7483
@ -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…
Reference in New Issue
Block a user