From 889d4756eaabb8fa3218acc1e2cfcadf72d40822 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:38:10 +0000 Subject: [performance] use native Go code to probe JPEGs (#3206) * use native Go code to probe JPEGs * add note about copying from github.com/disintegration/imaging * add more code comments --- internal/media/processingmedia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/media/processingmedia.go') diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go index b89bbb41d..78c6c61a9 100644 --- a/internal/media/processingmedia.go +++ b/internal/media/processingmedia.go @@ -162,7 +162,7 @@ func (p *ProcessingMedia) store(ctx context.Context) error { // Pass input file through ffprobe to // parse further metadata information. - result, err := ffprobe(ctx, temppath) + result, err := probe(ctx, temppath) if err != nil && !isUnsupportedTypeErr(err) { return gtserror.Newf("ffprobe error: %w", err) } else if result == nil { -- cgit v1.2.3