DEMUX and RLE fixes