Revision 5a18221b libavcodec/lcldec.c

View differences:

libavcodec/lcldec.c
99 99
            ofs = *srcptr++;
100 100
            cnt = *srcptr++;
101 101
            ofs += cnt * 256;
102
            cnt = ((cnt >> 3) & 0x1f) + 1;
102
            cnt = (cnt >> 3) + 1;
103 103
            ofs &= 0x7ff;
104 104
            cnt *= 4;
105 105
            if (destptr_end - destptr < cnt) {

Also available in: Unified diff