From 2cf12148f9c78806a80e8ceaa5f1abb0e111ba20 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Fri, 3 Feb 2023 15:44:00 -0600 Subject: [PATCH] Fix ffmpeg git branch/tag release names The ffmpeg project changed their branch/tag naming structure. There is now a branch for the major.minor version using the old naming scheme (release/major.minor) and a tag called n{major}.{minor}[.{patch}]. This change broke the static builds which checked out no-longer-existing ffmpeg branches with their old name. --- ffmpeg-sys-the-third/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg-sys-the-third/build.rs b/ffmpeg-sys-the-third/build.rs index 9d9ef1e..b64938d 100644 --- a/ffmpeg-sys-the-third/build.rs +++ b/ffmpeg-sys-the-third/build.rs @@ -165,7 +165,7 @@ fn fetch() -> io::Result<()> { .arg("clone") .arg("--depth=1") .arg("-b") - .arg(format!("release/{}", ffmpeg_version())) + .arg(format!("n{}", ffmpeg_version())) .arg("https://github.com/FFmpeg/FFmpeg") .arg(&clone_dest_dir) .status()?;