From: Øyvind Kolås Date: Thu, 25 Feb 2021 19:15:06 +0000 (+0100) Subject: babl: babl-fish-reference remove superfluous set of dst_img->type[0] X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~6^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b40ac5837e558b20a0af1ea617563e09f2c77109;p=babl.git babl: babl-fish-reference remove superfluous set of dst_img->type[0] As reported by Rafał Mikrut, fixing issue #57. --- diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c index a62f32a..2725e3e 100644 --- a/babl/babl-fish-reference.c +++ b/babl/babl-fish-reference.c @@ -358,7 +358,6 @@ ncomponent_convert_from_double (BablFormat *destination_fmt, src_img->stride[0] = 0; dst_img->data[0] = destination_buf; - dst_img->type[0] = (BablType *) babl_type_from_id (BABL_DOUBLE); dst_img->pitch[0] = destination_fmt->type[0]->bits/8; dst_img->stride[0] = 0; @@ -480,7 +479,6 @@ ncomponent_convert_from_float (BablFormat *source_fmt, src_img->stride[0] = 0; dst_img->data[0] = destination_buf; - dst_img->type[0] = (BablType *) babl_type_from_id (BABL_FLOAT); dst_img->pitch[0] = destination_fmt->type[0]->bits/8; dst_img->stride[0] = 0;