Browse Source

enable x264 multi-threading

Originally committed as revision 4325 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Måns Rullgård 20 years ago
parent
commit
568d4b810f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/x264.c

+ 2
- 0
libavcodec/x264.c View File

@@ -154,6 +154,8 @@ X264_init(AVCodecContext *avctx)
x4->params.i_fps_num = avctx->time_base.den;
x4->params.i_fps_den = avctx->time_base.num;

x4->params.i_threads = avctx->thread_count;

x4->enc = x264_encoder_open(&x4->params);
if(!x4->enc)
return -1;


Loading…
Cancel
Save