[x264-devel] [PATCH] Update osdep.h for detecting Windows named pipe by name
Richard
ccc7922 at foxmail.com
Sun May 11 03:38:36 UTC 2025
From 437eb5899e59fb83eae4f40d9cccef0b1b531f75 Mon Sep 17 00:00:00 2001
From: Mr-Z-2697 <74594146+Mr-Z-2697 at users.noreply.github.com>
Date: Sun, 11 May 2025 11:30:26 +0800
Subject: [PATCH] Update osdep.h for detecting Windows named pipe by name
---
common/osdep.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/osdep.h b/common/osdep.h
index 23739b7a..4f2bd0ca 100644
--- a/common/osdep.h
+++ b/common/osdep.h
@@ -242,6 +242,8 @@ static inline int x264_vfprintf( FILE *stream, const char *format, va_list arg )
static inline int x264_is_regular_file_path( const char *path )
{
int ret = -1;
+ if ( !strncasecmp( path, "\\\\.\\pipe\\", 9 ) )
+ return 0;
wchar_t path_buf[MAX_PATH];
wchar_t *path_utf16 = x264_utf8_to_utf16_try_buf( path, path_buf, MAX_PATH );
if( path_utf16 )
--
2.49.0.windows.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20250511/1433fa77/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Update-osdep.h-for-detecting-Windows-named-pipe-by-n.patch
Type: application/octet-stream
Size: 845 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20250511/1433fa77/attachment.obj>
More information about the x264-devel
mailing list