Revision ecb51b25 libavcodec/vp3.c

View differences:

libavcodec/vp3.c
63 63
#define SB_PARTIALLY_CODED  1
64 64
#define SB_FULLY_CODED      2
65 65

  
66
// This is the maximum length of a single long bit run that can be encoded
67
// for superblock coding or block qps. Theora special-cases this to read a
68
// bit instead of flipping the current bit to allow for runs longer than 4129.
69
#define MAXIMUM_LONG_BIT_RUN 4129
70

  
66 71
#define MODE_INTER_NO_MV      0
67 72
#define MODE_INTRA            1
68 73
#define MODE_INTER_PLUS_MV    2
......
920 925
                }
921 926
            }
922 927

  
923
            if (run_length == 4129)
928
            if (run_length == MAXIMUM_LONG_BIT_RUN)
924 929
                bit = get_bits1(gb);
925 930
            else
926 931
                bit ^= 1;

Also available in: Unified diff