swr: move dst_size == 0 handling outside DSP function.