Revision 8448946e libavcodec/roqvideoenc.c

View differences:

libavcodec/roqvideoenc.c
608 608
/* NOTE: Typecodes must be spooled AFTER arguments!! */
609 609
static void write_typecode(CodingSpool *s, uint8_t type)
610 610
{
611
    s->typeSpool |= ((type) & 3) << (14 - s->typeSpoolLength);
611
    s->typeSpool |= (type & 3) << (14 - s->typeSpoolLength);
612 612
    s->typeSpoolLength += 2;
613 613
    if (s->typeSpoolLength == 16) {
614 614
        bytestream_put_le16(s->pout, s->typeSpool);

Also available in: Unified diff