diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-21 16:06:03 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-21 16:06:03 -0800 |
commit | 94d6461568b154d3c228b91912c431474c6ef184 (patch) | |
tree | b4dd392747bc25c0dcc13236cc640ec738b6d877 /include/attach.php | |
parent | 09f1e4bdfbc7659cfb9f8db9b6c3278a66e08db7 (diff) | |
download | volse-hubzilla-94d6461568b154d3c228b91912c431474c6ef184.tar.gz volse-hubzilla-94d6461568b154d3c228b91912c431474c6ef184.tar.bz2 volse-hubzilla-94d6461568b154d3c228b91912c431474c6ef184.zip |
Video thumbnail generator
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php index e3c40f68d..7988286c9 100644 --- a/include/attach.php +++ b/include/attach.php @@ -1636,12 +1636,13 @@ function find_filename_by_hash($channel_id, $attachHash) { * * @param resource $in File pointer of input * @param resource $out File pointer of output + * @param int $bufsize size of chunk, default 16384 * @return number with the size */ -function pipe_streams($in, $out) { +function pipe_streams($in, $out, $bufize = 16384) { $size = 0; while (!feof($in)) - $size += fwrite($out, fread($in, 16384)); + $size += fwrite($out, fread($in, $bufsize)); return $size; } |