[ffmpeg] fix shared library versions

the hardcoded ffmpeg library versions are partly wrong after the bump.
This breaks packaging on linux, because dpkg-shlibs cannot find the correct libaries.

This PR corrects the major versions, I hope I found all places where they are used.