fix #78: skip parsing cover art if image is unsupported

This commit is contained in:
鲁树人 committed 2024-11-02 13:49:40 +09:00
1 parent f753b9c67d
commit 6493b2c5fc
3 files changed
+23 -18

No files matched your search

+1 -1
View File
@@ -428,7 +428,7 @@ func (p *processor) process(inputFile string, allDec []common.DecoderFactory) er
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
if err := ffmpeg.UpdateMeta(ctx, outPath, params); err != nil {
if err := ffmpeg.UpdateMeta(ctx, outPath, params, logger); err != nil {
return err
}
}