Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-22 15:23:22 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-22 15:23:22 +0400
commit14e707503052de95aa091d02d8cc229a05d77e95 (patch)
tree88518d64db53cb175c2375b6b5c0add3f8e77af7 /lib/private/preview
parentc22019dec5629967a092c1a64159469ad8fef5d4 (diff)
we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB.
in some cases 1MB was no enough to generate thumbnail
Diffstat (limited to 'lib/private/preview')
-rw-r--r--lib/private/preview/movies.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/preview/movies.php b/lib/private/preview/movies.php
index 3cbbaa9d3be..ac771deb413 100644
--- a/lib/private/preview/movies.php
+++ b/lib/private/preview/movies.php
@@ -46,7 +46,9 @@ if (!\OC_Util::runningOnWindows()) {
$handle = $fileview->fopen($path, 'rb');
- $firstmb = stream_get_contents($handle, 1048576); //1024 * 1024 = 1048576
+ // we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB.
+ // in some cases 1MB was no enough to generate thumbnail
+ $firstmb = stream_get_contents($handle, 5242880);
file_put_contents($absPath, $firstmb);
if (self::$avconvBinary) {