Verified Commit b7c8304c authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix toEven

parent 37ede348
...@@ -248,7 +248,7 @@ function isOdd (num: number) { ...@@ -248,7 +248,7 @@ function isOdd (num: number) {
} }
function toEven (num: number) { function toEven (num: number) {
if (isOdd) return num + 1 if (isOdd(num)) return num + 1
return num return num
} }
......
...@@ -3,14 +3,12 @@ import * as ffmpeg from 'fluent-ffmpeg' ...@@ -3,14 +3,12 @@ import * as ffmpeg from 'fluent-ffmpeg'
import { readFile, remove, writeFile } from 'fs-extra' import { readFile, remove, writeFile } from 'fs-extra'
import { dirname, join } from 'path' import { dirname, join } from 'path'
import { FFMPEG_NICE, VIDEO_LIVE } from '@server/initializers/constants' import { FFMPEG_NICE, VIDEO_LIVE } from '@server/initializers/constants'
import { AvailableEncoders, EncoderOptionsBuilder, EncoderOptions, EncoderProfile, VideoResolution } from '../../shared/models/videos' import { AvailableEncoders, EncoderOptions, EncoderOptionsBuilder, EncoderProfile, VideoResolution } from '../../shared/models/videos'
import { CONFIG } from '../initializers/config' import { CONFIG } from '../initializers/config'
import { execPromise, isOdd, promisify0 } from './core-utils' import { execPromise, promisify0 } from './core-utils'
import { computeFPS, getAudioStream, getVideoFileFPS } from './ffprobe-utils' import { computeFPS, getAudioStream, getVideoFileFPS } from './ffprobe-utils'
import { processImage } from './image-utils' import { processImage } from './image-utils'
import { logger } from './logger' import { logger } from './logger'
import { FilterSpecification } from 'fluent-ffmpeg'
import { findCommentId } from '@shared/extra-utils'
/** /**
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment