changeset 11438:db5623d197a3 libavcodec

Revert r22288 "Increase FF_INPUT_BUFFER_PADDING_SIZE to 64."
author alexc
date Tue, 09 Mar 2010 10:32:34 +0000
parents 8b2d9e680000
children 121d700285e7
files avcodec.h
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Tue Mar 09 10:27:35 2010 +0000
+++ b/avcodec.h	Tue Mar 09 10:32:34 2010 +0000
@@ -425,14 +425,12 @@
 
 /**
  * Required number of additionally allocated bytes at the end of the input bitstream for decoding.
- * The first 8 bytes are needed because some optimized bitstream readers read
- * 32 or 64 bit at once and could read over the end. The remainder is to give
- * decoders a reasonable amount of distance to work with before checking for
- * buffer overreads.<br>
+ * This is mainly needed because some optimized bitstream readers read
+ * 32 or 64 bit at once and could read over the end.<br>
  * Note: If the first 23 bits of the additional bytes are not 0, then damaged
  * MPEG bitstreams could cause overread and segfault.
  */
-#define FF_INPUT_BUFFER_PADDING_SIZE 64
+#define FF_INPUT_BUFFER_PADDING_SIZE 8
 
 /**
  * minimum encoding buffer size