Mercurial > libavcodec.hg
comparison avcodec.h @ 1289:57172377849a libavcodec
fix mpeg1/2 decoding if there are no 0 bytes after the bitstream
print mpeg1/2 startcodes support
author | michaelni |
---|---|
date | Fri, 30 May 2003 00:02:25 +0000 |
parents | 9e8cbd476f59 |
children | a918c7d38345 |
comparison
equal
deleted
inserted
replaced
1288:10c21dffe5ab | 1289:57172377849a |
---|---|
116 | 116 |
117 /* in bytes */ | 117 /* in bytes */ |
118 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 131072 | 118 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 131072 |
119 | 119 |
120 /** | 120 /** |
121 * Required number of zero bytes at the end of the input bitstream for decoding. | 121 * Required number of additionally allocated bytes at the end of the input bitstream for decoding. |
122 * to avoid overreading (and possibly segfaulting) | 122 * this is mainly needed because some optimized bitstream readers read |
123 * 32 or 64 bit at once and could read over the end<br> | |
124 * Note, if the first 23 bits of the additional bytes are not 0 then damaged | |
125 * MPEG bitstreams could cause overread and segfault | |
123 */ | 126 */ |
124 #define FF_INPUT_BUFFER_PADDING_SIZE 8 | 127 #define FF_INPUT_BUFFER_PADDING_SIZE 8 |
125 | 128 |
126 /* motion estimation type, EPZS by default */ | 129 /* motion estimation type, EPZS by default */ |
127 enum Motion_Est_ID { | 130 enum Motion_Est_ID { |