it did not compile with the latest libav. Fix for that.