Mercurial > libavcodec.hg
comparison avcodec.h @ 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 | ff9072ded749 |
children | 8ef285dc7f80 |
comparison
equal
deleted
inserted
replaced
11437:8b2d9e680000 | 11438:db5623d197a3 |
---|---|
423 /* in bytes */ | 423 /* in bytes */ |
424 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio | 424 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio |
425 | 425 |
426 /** | 426 /** |
427 * Required number of additionally allocated bytes at the end of the input bitstream for decoding. | 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 | 428 * This is mainly 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 | 429 * 32 or 64 bit at once and could read over the end.<br> |
430 * decoders a reasonable amount of distance to work with before checking for | |
431 * buffer overreads.<br> | |
432 * Note: If the first 23 bits of the additional bytes are not 0, then damaged | 430 * Note: If the first 23 bits of the additional bytes are not 0, then damaged |
433 * MPEG bitstreams could cause overread and segfault. | 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 * minimum encoding buffer size | 436 * minimum encoding buffer size |
439 * Used to avoid some checks during header writing. | 437 * Used to avoid some checks during header writing. |
440 */ | 438 */ |