summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2010-03-09 10:32:34 +0000
committerAlex Converse <alex.converse@gmail.com>2010-03-09 10:32:34 +0000
commit171b7b911249b94c09e32bdc02f35677111d704c (patch)
treefd72bc1ad7ddefabec962c9c65549b41cd305d34 /libavcodec
parent79350786239ce7ec07eb7cd7b2d6513a541ab4ee (diff)
Revert r22288 "Increase FF_INPUT_BUFFER_PADDING_SIZE to 64."
Originally committed as revision 22385 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f640dcd956..c6825f3264 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -425,14 +425,12 @@ enum SampleFormat {
/**
* 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