]> source.dussan.org Git - nextcloud-server.git/commitdiff
we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB.
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 22 Nov 2013 11:23:22 +0000 (12:23 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 22 Nov 2013 11:23:22 +0000 (12:23 +0100)
in some cases 1MB was no enough to generate thumbnail

lib/private/preview/movies.php

index 3cbbaa9d3bec5f11802802797ab3f4e9418c5bfc..ac771deb413f5aef9f4aa07f33d2d92e0f009cfe 100644 (file)
@@ -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) {