Skip to content

Commit

Permalink
Add support for ffmpeg 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Nov 26, 2024
1 parent d3c9e3d commit 106454b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/ffmigrate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func migrateProcessConfig(logger log.Logger, config *app.Config, version string)
return false, fmt.Errorf("unsupported FFmpeg version: %w", err)
}

if targetmajor > 6 {
if targetmajor > 7 {
err := fmt.Errorf("unknown FFmpeg version found: %d", targetmajor)
logger.Error().WithError(err).Log("Unsupported FFmpeg version")
return false, fmt.Errorf("unsupported FFmpeg version: %w", err)
Expand Down Expand Up @@ -230,6 +230,13 @@ func migrateProcessConfig(logger log.Logger, config *app.Config, version string)
currentmajor = 6
}

if currentmajor == 6 && targetmajor > 7 {
// Migration from version 6 to version 7
// Nothing happens

currentmajor = 7
}

if migrated {
logger.Info().WithFields(log.Fields{
"from": config.FFVersion,
Expand Down

0 comments on commit 106454b

Please sign in to comment.