rmdemux: check that slice data fits into the frame