The chars mean_motion_x and mean_motion_y are defined on line 292 and 293 in libmpcodecs/native/roqav.c.. These should be explicitily signed, since char defaults to unsigned on many architectures. In the current state, the video output is garbled on those architectures.