[x265] [PATCH] fix for unable to open input file for gcc 32 bit compiler

ashok at multicorewareinc.com ashok at multicorewareinc.com
Fri Jan 19 11:52:43 CET 2018


# HG changeset patch
# User Ashok Kumar Mishra <ashok at multicorewareinc.com>
# Date 1516353414 -19800
#      Fri Jan 19 14:46:54 2018 +0530
# Node ID d9a9a5daf8604d2dd34a5f172b732a7ce60fa227
# Parent  3712d13c09bf3b9db105c7f97188bcc11b8f83cd
fix for unable to open input file for gcc 32 bit compiler

diff -r 3712d13c09bf -r d9a9a5daf860 source/input/y4m.cpp
--- a/source/input/y4m.cpp	Sat Jan 13 02:47:30 2018 +0100
+++ b/source/input/y4m.cpp	Fri Jan 19 14:46:54 2018 +0530
@@ -20,6 +20,8 @@
  * This program is also available under a commercial proprietary license.
  * For more information, contact us at license @ x265.com.
  *****************************************************************************/
+#define _FILE_OFFSET_BITS 64
+#define _LARGEFILE_SOURCE
 
 #include "y4m.h"
 #include "common.h"
diff -r 3712d13c09bf -r d9a9a5daf860 source/input/yuv.cpp
--- a/source/input/yuv.cpp	Sat Jan 13 02:47:30 2018 +0100
+++ b/source/input/yuv.cpp	Fri Jan 19 14:46:54 2018 +0530
@@ -20,6 +20,8 @@
  * This program is also available under a commercial proprietary license.
  * For more information, contact us at license @ x265.com.
  *****************************************************************************/
+#define _FILE_OFFSET_BITS 64
+#define _LARGEFILE_SOURCE
 
 #include "yuv.h"
 #include "common.h"


More information about the x265-devel mailing list