Add support for ffmpeg 7
This commit is contained in:
parent
d3c9e3dc45
commit
106454be84
@ -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)
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user