Use different interleaving approach to fix incompatibility with latest libav.