Commit 4a1c817a authored by diego's avatar diego

Explain why the level variable is magically inceased in mpeg4_encode_dc().

It must be in a certain range to avoid DC overflows.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21087 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a78209e6
......@@ -242,6 +242,7 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s){
static inline void mpeg4_encode_dc(PutBitContext * s, int level, int n)
{
#if 1
/* DC will overflow if level is outside the [-255,255] range. */
level+=256;
if (n < 4) {
/* luminance */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment