Commit b2b27df3 authored by conrad's avatar conrad

Make the special 4129 case for long-run bit strings a #define and explain it

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21928 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3373f426
......@@ -63,6 +63,11 @@ typedef struct Vp3Fragment {
#define SB_PARTIALLY_CODED 1
#define SB_FULLY_CODED 2
// This is the maximum length of a single long bit run that can be encoded
// for superblock coding or block qps. Theora special-cases this to read a
// bit instead of flipping the current bit to allow for runs longer than 4129.
#define MAXIMUM_LONG_BIT_RUN 4129
#define MODE_INTER_NO_MV 0
#define MODE_INTRA 1
#define MODE_INTER_PLUS_MV 2
......@@ -920,7 +925,7 @@ static int unpack_block_qpis(Vp3DecodeContext *s, GetBitContext *gb)
}
}
if (run_length == 4129)
if (run_length == MAXIMUM_LONG_BIT_RUN)
bit = get_bits1(gb);
else
bit ^= 1;
......
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