From: Øyvind Kolås Date: Sun, 24 Feb 2019 17:25:14 +0000 (+0100) Subject: babl: remove some redundant processing in babl_fish_reference X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~11^2~140 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=351303d40195e234ad78d4b01be2f22200d16780;p=babl.git babl: remove some redundant processing in babl_fish_reference --- diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c index d05dc61..f9e2122 100644 --- a/babl/babl-fish-reference.c +++ b/babl/babl-fish-reference.c @@ -1229,15 +1229,14 @@ babl_fish_reference_process_float (const Babl *babl, } { sprintf (dst_name, "%s float", babl_get_name((void*)babl->fish.destination->format.model)); + destination_float_format = + babl_format_with_space (dst_name, + BABL (BABL ((babl->fish.destination))->format.space)); conv_from_rgba = babl_conversion_find ( babl_format_with_space ("RGBA float", BABL (BABL ((babl->fish.destination))->format.space)), - babl_format_with_space (dst_name, - BABL (BABL ((babl->fish.destination))->format.space))); - destination_float_format = - babl_format_with_space (dst_name, - BABL (BABL ((babl->fish.destination))->format.space)); + destination_float_format); } if (!conv_to_rgba || !conv_from_rgba)