handle case when set_image_allocation_function is called with a NULL argument
fix type of de265_decoder_context