rawspeed: imported upstream r573 (thanks klaus)
(cherry picked from commit 9e1727caf1820bd711b0d15bb71e20a959348830)