Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/avcodec.h Thu May 29 21:34:25 2003 +0000 +++ b/avcodec.h Fri May 30 00:02:25 2003 +0000 @@ -118,8 +118,11 @@ #define AVCODEC_MAX_AUDIO_FRAME_SIZE 131072 /** - * Required number of zero bytes at the end of the input bitstream for decoding. - * to avoid overreading (and possibly segfaulting) + * Required number of additionally allocated bytes at the end of the input bitstream for decoding. + * 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 8