test(imagorvideo): fallback image tests
This commit is contained in:
parent
d9c697a0b2
commit
035cf78b96
8 changed files with 47 additions and 14 deletions
|
|
@ -278,7 +278,7 @@ func convertFrameToRGB(av *AVContext) error {
|
|||
|
||||
func exportBuffer(av *AVContext) ([]byte, error) {
|
||||
if !av.hasFrame {
|
||||
return nil, ErrDecoderNotFound
|
||||
return nil, ErrInvalidData
|
||||
}
|
||||
size := av.height * av.width
|
||||
if av.hasAlpha {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue