]> granicus.if.org Git - handbrake/commitdiff
Merging Bump libx265 to version 1.6
authorRodeo <tdskywalker@gmail.com>
Fri, 3 Apr 2015 14:19:28 +0000 (14:19 +0000)
committerScott <sr55.hb@outlook.com>
Mon, 18 Jan 2016 21:33:06 +0000 (21:33 +0000)
contrib/x265/A00-maxCUSize-idiocy.patch [deleted file]
contrib/x265/module.defs
libhb/encx265.c

diff --git a/contrib/x265/A00-maxCUSize-idiocy.patch b/contrib/x265/A00-maxCUSize-idiocy.patch
deleted file mode 100644 (file)
index a5f7181..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -r 32d72a0285e0 source/common/param.cpp
---- a/source/common/param.cpp  Tue Feb 10 21:38:22 2015 -0600
-+++ b/source/common/param.cpp  Thu Feb 12 09:12:01 2015 -0700
-@@ -1151,6 +1151,7 @@
- int x265_set_globals(x265_param *param)
- {
-+#if 0
-     static int once /* = 0 */;
-     if (ATOMIC_INC(&once) > 1)
-@@ -1162,6 +1163,7 @@
-         }
-     }
-     else
-+#endif
-     {
-         uint32_t maxLog2CUSize = (uint32_t)g_log2Size[param->maxCUSize];
index 071f7a60012fe08fe910182e952bb420769a0ace..d17b44830ef9c318e82f535b54a57ad6e405588b 100644 (file)
@@ -2,7 +2,7 @@ __deps__ := YASM CMAKE
 $(eval $(call import.MODULE.defs,X265,x265,$(__deps__)))
 $(eval $(call import.CONTRIB.defs,X265))
 
-X265.FETCH.url = http://download.handbrake.fr/contrib/x265-9329-0d30d2641875-1.5.tar.bz2
+X265.FETCH.url = http://download.handbrake.fr/contrib/x265-9964-cbeb7d8a4880-1.6.tar.bz2
 
 X265.CONFIGURE.exe         = cmake
 X265.CONFIGURE.args.prefix = -DCMAKE_INSTALL_PREFIX="$(X265.CONFIGURE.prefix)"
index 2755c826d95c4c481bc98f1e7fa151712b9777d6..8e274ec14a8e2c3f3ae7914635b5200acf92aa35 100644 (file)
@@ -279,6 +279,9 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job)
     job->areBframes = (param->bframes > 0) + (param->bframes   > 0 &&
                                               param->bBPyramid > 0);
 
+    /* Reset global variables before opening a new encoder */
+    x265_cleanup();
+
     pv->x265 = x265_encoder_open(param);
     if (pv->x265 == NULL)
     {