add. test codec ctx,pkt

master v1.0.22
Baik S. Hyun 3 years ago
parent 8ad7645eb4
commit 162d84950c

@ -585,8 +585,8 @@ func (self *AudioDecoder) Decode(pkt []byte) (gotframe bool, frame av.AudioFrame
cgotframe := C.int(0) cgotframe := C.int(0)
if ff.codecCtx == nil { if ff.codecCtx == nil || &pkt[0] == nil {
err = fmt.Errorf("ffmpeg: Decode ff.codecCtx NULL") err = fmt.Errorf("ffmpeg: Decode ff.codecCtx NULL or pkg NULL")
return return
} }

Loading…
Cancel
Save