summaryrefslogtreecommitdiffstats
path: root/thirdparties/patches/ffmpeg_libx264_git.patch
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/patches/ffmpeg_libx264_git.patch')
-rw-r--r--thirdparties/patches/ffmpeg_libx264_git.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/thirdparties/patches/ffmpeg_libx264_git.patch b/thirdparties/patches/ffmpeg_libx264_git.patch
new file mode 100644
index 0000000..e38822f
--- /dev/null
+++ b/thirdparties/patches/ffmpeg_libx264_git.patch
@@ -0,0 +1,23 @@
+diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
+old mode 100644
+new mode 100755
+index a2d64d1..7a2905f
+--- a/libavcodec/libx264.c
++++ b/libavcodec/libx264.c
+@@ -282,14 +282,14 @@ static av_cold int X264_init(AVCodecContext *avctx)
+ int sw,sh;
+
+ x264_param_default(&x4->params);
+-
+ x4->params.b_deblocking_filter = avctx->flags & CODEC_FLAG_LOOP_FILTER;
+
+ x4->params.rc.f_ip_factor = 1 / fabs(avctx->i_quant_factor);
+ x4->params.rc.f_pb_factor = avctx->b_quant_factor;
+ x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset;
+ if (x4->preset || x4->tune)
+- if (x264_param_default_preset(&x4->params, x4->preset, x4->tune) < 0) {
++ if (/*x264_param_default_preset(&x4->params, x4->preset, x4->tune)*/
++ x264_param_default_preset(&x4->params, "superfast", "zerolatency") < 0) {
+ int i;
+ av_log(avctx, AV_LOG_ERROR, "Error setting preset/tune %s/%s.\n", x4->preset, x4->tune);
+ av_log(avctx, AV_LOG_INFO, "Possible presets:");
OpenPOWER on IntegriCloud