I think of a "riff" as a repeating piece, like, say, a repeating chord progression or series of notes, sort of like a repeating loop.
By that definition, I guess a "riff" could be a "lick" that repeats... but not all licks are actually riffs...
That's how I understand the two.