An LED driver comprising a boost integrated flyback (BiFRED) converter comprising: an input having first and second terminals (50a, 50b); a boost portion comprising an inductor between one terminal of the input and a switching element; and a flyback portion comprising a primary winding and a secondary winding, with an energy storage device in series with the primary winding of the flyback portion and an output having first and second terminals (52a, 52b) defined at the second side, characterised in that the converter further comprises: a current sensing element in series with the energy storage device configured to sense an output current from the boost portion when said switching element is switched off and a current discharged from the energy storage device when said switching element is switched on; a feedback circuit configured to process the sensed current to derive a control signal; and a controller configured to adjust the time duration for which the switching element is switched on based on the control signal; wherein the feedback circuit comprises a low pass filter and a voltage amplifier circuit with a gain which varies inversely with the filtered sensed current and in turn the input voltage such that the high frequency switching components of the sensed current are removed to derive the control signal with a level indicative of high and low of the input voltage, and the controller is adapted to decrease the time duration when the control signal indicates that the input voltage has increased. an input having first and second terminals (50a, 50b); a boost portion comprising an inductor between one terminal of the input and a switching element; and a flyback portion comprising a primary winding and a secondary winding, with an energy storage device in series with the primary winding of the flyback portion and an output having first and second terminals (52a, 52b) defined at the second side, characterised in that the converter further comprises: a current sensing element in series with the energy storage device configured to sense an output current from the boost portion when said switching element is switched off and a current discharged from the energy storage device when said switching element is switched on; a feedback circuit configured to process the sensed current to derive a control signal; and a controller configured to adjust the time duration for which the switching element is switched on based on the control signal; wherein the feedback circuit comprises a low pass filter and a voltage amplifier circuit with a gain which varies inversely with the filtered sensed current and in turn the input voltage such that the high frequency switching components of the sensed current are removed to derive the control signal with a level indicative of high and low of the input voltage, and the controller is adapted to decrease the time duration when the control signal indicates that the input voltage has increased. a current sensing element in series with the energy storage device configured to sense an output current from the boost portion when said switching element is switched off and a current discharged from the energy storage device when said switching element is switched on; a feedback circuit configured to process the sensed current to derive a control signal; and a controller configured to adjust the time duration for which the switching element is switched on based on the control signal; wherein the feedback circuit comprises a low pass filter and a voltage amplifier circuit with a gain which varies inversely with the filtered sensed current and in turn the input voltage such that the high frequency switching components of the sensed current are removed to derive the control signal with a level indicative of high and low of the input voltage, and the controller is adapted to decrease the time duration when the control signal indicates that the input voltage has increased.