Revision 33ac07ea

View differences:

libavformat/matroskadec.c
660 660
        return res;
661 661

  
662 662
    /* make signed (weird way) */
663
    if (unum == (uint64_t)-1)
664
        *num = INT64_MAX;
665
    else
666
        *num = unum - ((1LL << ((7 * res) - 1)) - 1);
663
    *num = unum - ((1LL << (7*res - 1)) - 1);
667 664

  
668 665
    return res;
669 666
}

Also available in: Unified diff