diff options
author | Simon Hailes <btsimonh@googlemail.com> | 2016-08-30 08:47:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-30 17:10:11 +0200 |
commit | a2fcacc880ca79b3f3636cf3e78d8c9164067224 (patch) | |
tree | 1fe1289824a066c5c5cd6d939f5d0faf3eaa13f6 /libavformat/crypto.c | |
parent | a64839189622f2a4cc3c62168ae5037b6aab6992 (diff) | |
download | ffmpeg-a2fcacc880ca79b3f3636cf3e78d8c9164067224.tar.gz |
libavformat/crypto - encourage reads of 4096 bytes
the current implementation reads in chunks of 149x16=2384 bytes.
Seems more logical for it to read in chunks of 4096
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/crypto.c')
-rw-r--r-- | libavformat/crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/crypto.c b/libavformat/crypto.c index 2999f50046..31a438c94c 100644 --- a/libavformat/crypto.c +++ b/libavformat/crypto.c @@ -26,7 +26,8 @@ #include "internal.h" #include "url.h" -#define MAX_BUFFER_BLOCKS 150 +// encourage reads of 4096 bytes - 1 block is always retained. +#define MAX_BUFFER_BLOCKS 257 #define BLOCKSIZE 16 typedef struct CryptoContext { |