Remove not used variable and added better detection of ffmpeg libraries