From 3cbc7ef3d60b6af3617079f24a4f401d83353003 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 28 Feb 2014 11:41:55 +0200 Subject: qt-faststart: Increase the copy buffer size to 64 KB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copying data in chunks of 1 KB is a little wasteful. 64 KB should still easily fit on the stack, so there's no need to allocate it dynamically. Signed-off-by: Martin Storsjö --- tools/qt-faststart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c index f33d6fa80c..88f5b48785 100644 --- a/tools/qt-faststart.c +++ b/tools/qt-faststart.c @@ -77,7 +77,7 @@ #define CO64_ATOM QT_ATOM('c', 'o', '6', '4') #define ATOM_PREAMBLE_SIZE 8 -#define COPY_BUFFER_SIZE 1024 +#define COPY_BUFFER_SIZE 65536 int main(int argc, char *argv[]) { -- cgit v1.2.3