[FFmpeg-devel] [PATCH v7 3/3] avformat/file: remove _WIN32 condition

softworkz ffmpegagent at gmail.com
Wed May 25 01:20:51 EEST 2022


From: softworkz <softworkz at hotmail.com>

stat is now re-mapped with long path support
in os_support.h

Signed-off-by: softworkz <softworkz at hotmail.com>
---
 libavformat/file.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavformat/file.c b/libavformat/file.c
index 063d7c5aa2..98c9e81bcb 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -154,11 +154,7 @@ static int file_check(URLContext *h, int mask)
             ret |= AVIO_FLAG_WRITE;
 #else
     struct stat st;
-#   ifndef _WIN32
     ret = stat(filename, &st);
-#   else
-    ret = win32_stat(filename, &st);
-#   endif
     if (ret < 0)
         return AVERROR(errno);
 
-- 
ffmpeg-codebot


More information about the ffmpeg-devel mailing list