diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-22 12:23:22 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-22 12:23:22 +0100 |
commit | 14e707503052de95aa091d02d8cc229a05d77e95 (patch) | |
tree | 88518d64db53cb175c2375b6b5c0add3f8e77af7 /lib/private/preview | |
parent | c22019dec5629967a092c1a64159469ad8fef5d4 (diff) | |
download | nextcloud-server-14e707503052de95aa091d02d8cc229a05d77e95.tar.gz nextcloud-server-14e707503052de95aa091d02d8cc229a05d77e95.zip |
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.php | 4 |
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) { |