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

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

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
}
}