older libav compatibility fix