Fixed the detection of the pkg-config for ffmpeg