Browse Source

qt-faststart: Increase the copy buffer size to 64 KB

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ö <martin@martin.st>
Martin Storsjö 11 years ago
parent
commit
3cbc7ef3d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/qt-faststart.c

+ 1 - 1
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[])
 {