Ignoring the header modification issues, - channels = ((h >> 14) & 0x03) * 2 + 2; - id = (h >> 6) & 0xff; - bits = ((h >> 4) & 0x03) * 4 + 16; + channels = ((h >> 14) & 0x0003) * 2 + 2; + id = (h >> 6) & 0x00ff; + bits = ((h >> 4) & 0x0003) * 4 + 16;
Is that really necessary? It looks less clear. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
