Revision 171b7b91 libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
425 425

  
426 426
/**
427 427
 * Required number of additionally allocated bytes at the end of the input bitstream for decoding.
428
 * The first 8 bytes are needed because some optimized bitstream readers read
429
 * 32 or 64 bit at once and could read over the end. The remainder is to give
430
 * decoders a reasonable amount of distance to work with before checking for
431
 * buffer overreads.<br>
428
 * This is mainly needed because some optimized bitstream readers read
429
 * 32 or 64 bit at once and could read over the end.<br>
432 430
 * Note: If the first 23 bits of the additional bytes are not 0, then damaged
433 431
 * MPEG bitstreams could cause overread and segfault.
434 432
 */
435
#define FF_INPUT_BUFFER_PADDING_SIZE 64
433
#define FF_INPUT_BUFFER_PADDING_SIZE 8
436 434

  
437 435
/**
438 436
 * minimum encoding buffer size

Also available in: Unified diff