mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-14 17:56:00 -07:00
Remove unused pointer.
This commit is contained in:
parent
efeb6327b3
commit
5255b5389f
1 changed files with 0 additions and 2 deletions
|
|
@ -170,8 +170,6 @@ func EncodeYUVA(w io.Writer, img *YUVAImage, c Config) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pic.writer = C.WebPWriterFunction(C.writeWebP)
|
pic.writer = C.WebPWriterFunction(C.writeWebP)
|
||||||
pic.custom_ptr = unsafe.Pointer(&destinationManager{writer: w})
|
|
||||||
|
|
||||||
if C.WebPEncode(webpConfig, pic) == 0 {
|
if C.WebPEncode(webpConfig, pic) == 0 {
|
||||||
return fmt.Errorf("Encoding error: %d", pic.error_code)
|
return fmt.Errorf("Encoding error: %d", pic.error_code)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue