make swresample optional for ffmpeg