avformat/rpl: The associative law doesnt hold for signed integers in C