ffmpeg_libx264_git.patch 1.0 KB

1234567891011121314151617181920212223
  1. diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
  2. old mode 100644
  3. new mode 100755
  4. index a2d64d1..7a2905f
  5. --- a/libavcodec/libx264.c
  6. +++ b/libavcodec/libx264.c
  7. @@ -282,14 +282,14 @@ static av_cold int X264_init(AVCodecContext *avctx)
  8. int sw,sh;
  9. x264_param_default(&x4->params);
  10. -
  11. x4->params.b_deblocking_filter = avctx->flags & CODEC_FLAG_LOOP_FILTER;
  12. x4->params.rc.f_ip_factor = 1 / fabs(avctx->i_quant_factor);
  13. x4->params.rc.f_pb_factor = avctx->b_quant_factor;
  14. x4->params.analyse.i_chroma_qp_offset = avctx->chromaoffset;
  15. if (x4->preset || x4->tune)
  16. - if (x264_param_default_preset(&x4->params, x4->preset, x4->tune) < 0) {
  17. + if (/*x264_param_default_preset(&x4->params, x4->preset, x4->tune)*/
  18. + x264_param_default_preset(&x4->params, "superfast", "zerolatency") < 0) {
  19. int i;
  20. av_log(avctx, AV_LOG_ERROR, "Error setting preset/tune %s/%s.\n", x4->preset, x4->tune);
  21. av_log(avctx, AV_LOG_INFO, "Possible presets:");