Revision 64b8e620

View differences:

libavcodec/xan.c
156 156
            av_memcpy_backptr(dest, back, size2);
157 157
            dest += size2;
158 158
        } else {
159
            int finish;
160
            size = ((opcode & 0x1f) << 2) + 4;
161

  
162
            finish = size > 0x70;
163
            if (finish)
164
                size = opcode & 3;
159
            int finish = opcode >= 0xfc;
160
            size = finish ? opcode & 3 : ((opcode & 0x1f) << 2) + 4;
165 161

  
166 162
            memcpy(dest, src, size);  dest += size;  src += size;
167 163
            if (finish)

Also available in: Unified diff