jxlsave: correctly mark frame as last (#2988)
It's required to close the input, otherwise the encoder can't know what the last frame is, resulting in an improper codestream. Resolves: #2987.
This commit is contained in:
parent
1989203985
commit
34427d83a0
@ -438,6 +438,11 @@ vips_foreign_save_jxl_build( VipsObject *object )
|
|||||||
return( -1 );
|
return( -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* This function must be called after the final frame and/or box,
|
||||||
|
* otherwise the codestream will not be encoded correctly.
|
||||||
|
*/
|
||||||
|
JxlEncoderCloseInput( jxl->encoder );
|
||||||
|
|
||||||
do {
|
do {
|
||||||
uint8_t *out;
|
uint8_t *out;
|
||||||
size_t avail_out;
|
size_t avail_out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user