Fix ffmpeg hardware acceleration