[x265] [PATCH] library header: use #ifdef __cplusplus
Remove a warning when using from C
Resolve some patching issues for previous patch (deadlock).
fix allocation crash if input y4m file is not found