libav compatibility fix