Please show the dependencies of (at least) libavutil and libavcodec with your approach and maybe compare them to what sdl needs: While the list may become smaller I wonder if it this would really solve the described issue.