Fix compilation with --with-static-ffmpeg
Merge pull request #336 from lthls/fix-static-ffmpeg-build

Fix compilation with --with-static-ffmpeg