Tomas Härdin: > > Why call it at all? Why not just add a new parameter to ff_jpeg2000_init_component that is always set to 1 when called from the encoder and 0 when called from the decoder? (And is this really a bottleneck?) - Andreas