ffmpeg | branch: master | Simon Hailes <[email protected]> | Tue Aug 30 08:47:02 2016 +0100| [a2fcacc880ca79b3f3636cf3e78d8c9164067224] | committer: Michael Niedermayer
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 <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2fcacc880ca79b3f3636cf3e78d8c9164067224 --- libavformat/crypto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/crypto.c b/libavformat/crypto.c index 2999f50..31a438c 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 { _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
