adaption to recent libav API changes