Browse Source

Revert r22288 "Increase FF_INPUT_BUFFER_PADDING_SIZE to 64."

Originally committed as revision 22385 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Alex Converse 15 years ago
parent
commit
171b7b9112
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      libavcodec/avcodec.h

+ 3
- 5
libavcodec/avcodec.h View File

@@ -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


Loading…
Cancel
Save