mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-12-26 08:14:10 +01:00
[performance] limit ffprobe read time to at most 1s after start of file (#3155)
This commit is contained in:
parent
87cff71af9
commit
0b4a951b48
@ -243,6 +243,11 @@ func ffprobe(ctx context.Context, filepath string) (*result, error) {
|
||||
// side data stored.
|
||||
"side_data=rotation",
|
||||
|
||||
// Limit to reading the first
|
||||
// 1s of data looking for "rotation"
|
||||
// side_data tags (expensive part).
|
||||
"-read_intervals", "%+1",
|
||||
|
||||
// Input file.
|
||||
"-i", filepath,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user