[x264-devel] [PATCH 07/32] x264.h: Disable renaming x264_encoder_open()

Vittorio Giovara vittorio.giovara at gmail.com
Fri Jan 20 15:20:32 CET 2017


This forced linked error badly interacts with the upcoming
API to bundle multiple bit depth in a single library.
---
 x264.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/x264.h b/x264.h
index fb9e5f2..1499410 100644
--- a/x264.h
+++ b/x264.h
@@ -858,13 +858,6 @@ void x264_picture_clean( x264_picture_t *pic );
  * Encoder functions
  ****************************************************************************/
 
-/* Force a link error in the case of linking against an incompatible API version.
- * Glue #defines exist to force correct macro expansion; the final output of the macro
- * is x264_encoder_open_##X264_BUILD (for purposes of dlopen). */
-#define x264_encoder_glue1(x,y) x##y
-#define x264_encoder_glue2(x,y) x264_encoder_glue1(x,y)
-#define x264_encoder_open x264_encoder_glue2(x264_encoder_open_,X264_BUILD)
-
 /* x264_encoder_open:
  *      create a new encoder handler, all parameters from x264_param_t are copied */
 x264_t *x264_encoder_open( x264_param_t * );
-- 
2.10.0



More information about the x264-devel mailing list