vidc: rework MM heap usage