Skip to content

Commit e5baa77

Browse files
committed
fix: lint errors
1 parent 945873c commit e5baa77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ffmpeg/ffmpeg.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (t *Transcoder) Output(arg string) transcoder.Transcoder {
132132

133133
// InputPipe ...
134134
func (t *Transcoder) InputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.Transcoder {
135-
if &t.input == nil {
135+
if t.input == "" {
136136
t.inputPipeWriter = w
137137
t.inputPipeReader = r
138138
}
@@ -141,7 +141,7 @@ func (t *Transcoder) InputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.T
141141

142142
// OutputPipe ...
143143
func (t *Transcoder) OutputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.Transcoder {
144-
if &t.output == nil {
144+
if t.output == nil {
145145
t.outputPipeWriter = w
146146
t.outputPipeReader = r
147147
}
@@ -216,7 +216,7 @@ func (t *Transcoder) GetMetadata() (transcoder.Metadata, error) {
216216

217217
var metadata Metadata
218218

219-
if err = json.Unmarshal([]byte(outb.String()), &metadata); err != nil {
219+
if err = json.Unmarshal(outb.Bytes(), &metadata); err != nil {
220220
return nil, err
221221
}
222222

0 commit comments

Comments
 (0)