diff options
author | darealshinji <djcj@gmx.de> | 2017-07-01 16:36:06 (GMT) |
---|---|---|
committer | darealshinji <djcj@gmx.de> | 2017-07-01 16:36:06 (GMT) |
commit | a6731b852730369f04d826519bf04e146c9e1b6a (patch) | |
tree | ab0337d6c39cb66531115e19b2b5b8521f2aa41d /src/x265-test.c | |
parent | bfdb83d7255a325ddd03d9265ca7b1d8c2144c60 (diff) | |
download | mxe-a6731b852730369f04d826519bf04e146c9e1b6a.zip mxe-a6731b852730369f04d826519bf04e146c9e1b6a.tar.gz mxe-a6731b852730369f04d826519bf04e146c9e1b6a.tar.bz2 |
x265: update, add patch and test
Diffstat (limited to 'src/x265-test.c')
-rw-r--r-- | src/x265-test.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/x265-test.c b/src/x265-test.c new file mode 100644 index 0000000..a12c136 --- /dev/null +++ b/src/x265-test.c @@ -0,0 +1,21 @@ +// This file is part of MXE. See LICENSE.md for licensing information. + +#include <x265.h> + +int main(void) +{ + int rv = 0; + + x265_param *param = x265_param_alloc(); + x265_param_default(param); + x265_encoder *encoder = x265_encoder_open(param); + + if (x265_param_apply_profile(param, "main444-12-intra") != 0) + rv = 1; + + x265_encoder_close(encoder); + x265_param_free(param); + x265_cleanup(); + + return rv; +} |