|
|
@@ -493,7 +493,7 @@ static av_cold int vpx_init(AVCodecContext *avctx, |
|
|
enccfg.g_h = avctx->height; |
|
|
enccfg.g_h = avctx->height; |
|
|
enccfg.g_timebase.num = avctx->time_base.num; |
|
|
enccfg.g_timebase.num = avctx->time_base.num; |
|
|
enccfg.g_timebase.den = avctx->time_base.den; |
|
|
enccfg.g_timebase.den = avctx->time_base.den; |
|
|
enccfg.g_threads = avctx->thread_count; |
|
|
|
|
|
|
|
|
enccfg.g_threads = avctx->thread_count ? avctx->thread_count : av_cpu_count(); |
|
|
enccfg.g_lag_in_frames= ctx->lag_in_frames; |
|
|
enccfg.g_lag_in_frames= ctx->lag_in_frames; |
|
|
|
|
|
|
|
|
if (avctx->flags & AV_CODEC_FLAG_PASS1) |
|
|
if (avctx->flags & AV_CODEC_FLAG_PASS1) |
|
|
|