Skip to content
Snippets Groups Projects
Commit 72673409 authored by Leo Ma's avatar Leo Ma
Browse files

Fix x264 preset parameter


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 9ff3fa87
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
Loading
Loading
@@ -287,7 +287,7 @@ static void libenc_closeSoftEncoder(JNIEnv* env, jobject thiz) {
static jboolean libenc_openSoftEncoder(JNIEnv* env, jobject thiz) {
// presetting
x264_param_default_preset(&x264_ctx.params, "superfast", "zerolatency");
x264_param_default_preset(&x264_ctx.params, x264_ctx.preset, "zerolatency");
x264_ctx.params.b_repeat_headers = 0;
x264_ctx.global_nal_header = true;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment