fix(ffmpeg): no codec handling
This commit is contained in:
parent
17b50dea3c
commit
66b74a271f
5 changed files with 6 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ func LoadAVContext(ctx context.Context, reader io.Reader, size int64) (*AVContex
|
|||
}
|
||||
|
||||
func (av *AVContext) ProcessFrames(maxFrames int) (err error) {
|
||||
if av.formatContext == nil || av.codecContext == nil {
|
||||
return ErrDecoderNotFound
|
||||
}
|
||||
if av.thumbContext == nil {
|
||||
return createThumbContext(av, C.int(maxFrames))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue