Message ID | 20181231073749.12397-1-kjeyapal@akamai.com |
---|---|
State | Accepted |
Commit | e9564f7feaf25b5c0ccd73e835b69a0dbba06786 |
Headers | show |
diff --git a/libavformat/file.c b/libavformat/file.c index 1d321c4..e613b91 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -173,7 +173,11 @@ static int file_delete(URLContext *h) av_strstart(filename, "file:", &filename); ret = rmdir(filename); - if (ret < 0 && errno == ENOTDIR) + if (ret < 0 && (errno == ENOTDIR +# ifdef _WIN32 + || errno == EINVAL +# endif + )) ret = unlink(filename); if (ret < 0) return AVERROR(errno);
From: Karthick Jeyapal <kjeyapal@akamai.com> Fixes bug id : 7638 --- libavformat/file.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)