From 142cb566f6734142065c4b900d756c26a3dd685e Mon Sep 17 00:00:00 2001 From: Robert Welin Date: Mon, 18 Nov 2019 09:42:43 +0000 Subject: [PATCH] Fix Errorf arguments found by go vet printf analysis --- av/avutil/avutil.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/av/avutil/avutil.go b/av/avutil/avutil.go index 1e980cd7..3a20b825 100644 --- a/av/avutil/avutil.go +++ b/av/avutil/avutil.go @@ -108,7 +108,7 @@ func (self *Handlers) NewAudioEncoder(typ av.CodecType) (enc av.AudioEncoder, er } } } - err = fmt.Errorf("avutil: encoder", typ, "not found") + err = fmt.Errorf("avutil: encoder %s not found", typ) return } @@ -120,7 +120,7 @@ func (self *Handlers) NewAudioDecoder(codec av.AudioCodecData) (dec av.AudioDeco } } } - err = fmt.Errorf("avutil: decoder", codec.Type(), "not found") + err = fmt.Errorf("avutil: decoder %s not found", codec.Type()) return }