ffmpeg: don't apply patch to HEAD

Fixes #25134.