aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-01-14 23:34:03 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-01-29 13:42:15 +0100
commit06bcfbd9f715055f2f00bb66149b1dba926d007a (patch)
tree253059fe56f9c1ab818ab60b4871a67a945b229f /server/middlewares
parent0539dba824bc3b964faaba358d8e7836e006b899 (diff)
downloadPeerTube-06bcfbd9f715055f2f00bb66149b1dba926d007a.tar.gz
PeerTube-06bcfbd9f715055f2f00bb66149b1dba926d007a.tar.zst
PeerTube-06bcfbd9f715055f2f00bb66149b1dba926d007a.zip
Downsample to the closest divisor standard framerate
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/videos/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts
index 6733d9dec..00ee375cb 100644
--- a/server/middlewares/validators/videos/videos.ts
+++ b/server/middlewares/validators/videos/videos.ts
@@ -81,7 +81,7 @@ const videosAddValidator = getCommonVideoEditAttributes().concat([
81 duration = await getDurationFromVideoFile(videoFile.path) 81 duration = await getDurationFromVideoFile(videoFile.path)
82 } catch (err) { 82 } catch (err) {
83 logger.error('Invalid input file in videosAddValidator.', { err }) 83 logger.error('Invalid input file in videosAddValidator.', { err })
84 res.status(400) 84 res.status(422)
85 .json({ error: 'Invalid input file.' }) 85 .json({ error: 'Invalid input file.' })
86 86
87 return cleanUpReqFiles(req) 87 return cleanUpReqFiles(req)