Fix av_extend unsigned underflow bug