add a missing rewind to jxlload

This commit is contained in:
John Cupitt 2021-05-04 19:06:22 +01:00
parent 50c96a1e3b
commit b87f5ba615
1 changed files with 3 additions and 0 deletions

View File

@ -485,6 +485,9 @@ vips_foreign_load_jxl_header( VipsForeignLoad *load )
printf( "vips_foreign_load_jxl_header:\n" );
#endif /*DEBUG*/
if( vips_source_rewind( jxl->source ) )
return( -1 );
if( vips_foreign_load_jxl_fill_input( jxl, 0 ) )
return( -1 );
JxlDecoderSetInput( jxl->decoder,