Don't transcode if original format/bitrate is the same as the selected ones

This commit is contained in:
Deluan
2020-04-08 19:10:55 -04:00
parent 519e3f014d
commit 0fa8290ed3
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ func selectTranscodingOptions(ctx context.Context, ds model.DataStore, mf *model
bitRate = t.DefaultBitRate
}
}
if format == mf.Suffix && bitRate > mf.BitRate {
if format == mf.Suffix && bitRate >= mf.BitRate {
format = "raw"
bitRate = 0
}