[SCM] libav/experimental: qt-faststart: Increase the copy buffer size to 64 KB

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:01:46 UTC 2014


The following commit has been merged in the experimental branch:
commit 3cbc7ef3d60b6af3617079f24a4f401d83353003
Author: Martin Storsjö <martin at martin.st>
Date:   Fri Feb 28 11:41:55 2014 +0200

    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 at martin.st>

diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index f33d6fa..88f5b48 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[])
 {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list