Libav the fork compat

Makes #404 with with libav the fork.