We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5edc9d7 commit 5773c63Copy full SHA for 5773c63
1 file changed
drivers/local/util.go
@@ -80,7 +80,7 @@ func resizeImageToBufferWithFFmpegGo(inputFile string, width int, outputFormat s
80
if err != nil {
81
return nil, fmt.Errorf("ffmpeg-go failed to resize image %s to buffer: %w", inputFile, err)
82
}
83
- if outBuffer.Len() == 0 {
+ if outBuffer == nil || outBuffer.Len() == 0 {
84
return nil, fmt.Errorf("ffmpeg-go produced empty buffer for %s", inputFile)
85
86
0 commit comments