Fix libav/ffmpeg autodetection