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 }